AttachedAssets |
class |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
The default attached assets collection. |
AttachedAssetsTest |
class |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests #attached assets: attached asset libraries and JavaScript settings. |
AttachedAssets.php |
file |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
|
AttachedAssetsTest.php |
file |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
|
StatisticsAttachedTest |
class |
core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php |
Tests if statistics.js is loaded when content is not printed. |
AttachedAssetsInterface |
interface |
core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php |
The attached assets collection for the current response. |
AttachedAssets::$settings |
property |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
The JavaScript settings attached to the current response. |
AttachedAssetsTest::setUp |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
|
AttachedAssets::$libraries |
property |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
The (ordered) list of asset libraries attached to the current response. |
AttachedRenderingBlock.php |
file |
core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php |
|
StatisticsAttachedTest.php |
file |
core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php |
|
AttachedAssets::setSettings |
function |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
Sets the JavaScript settings that are attached to the current response. |
AttachedAssets::getSettings |
function |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
Returns the settings attached to the current response. |
AttachedAssetsInterface.php |
file |
core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php |
|
AttachedAssets::setLibraries |
function |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
Sets the asset libraries attached to the current response. |
AttachedAssets::getLibraries |
function |
core/lib/Drupal/Core/Asset/AttachedAssets.php |
Returns the asset libraries attached to the current response. |
AttachedAssetsTest::$modules |
property |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
|
RenderAttachedTestController |
class |
core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php |
Controller for various permutations of #attached in the render array. |
AttachedAssetsTest::$renderer |
property |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
The renderer service. |
AttachedAssetsTest::testAlter |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests altering a JavaScript's weight via hook_js_alter(). |
render_attached_test.info.yml |
file |
core/modules/system/tests/modules/render_attached_test/render_attached_test.info.yml |
core/modules/system/tests/modules/render_attached_test/render_attached_test.info.yml |
StatisticsAttachedTest::setUp |
function |
core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php |
|
CommandWithAttachedAssetsTrait |
trait |
core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php |
Trait for Ajax commands that render content and attach assets. |
Connection::$attachedDatabases |
property |
core/modules/sqlite/src/Driver/Database/sqlite/Connection.php |
All databases attached to the current database. |
AttachedAssetsTest::testDefault |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests that default CSS and JavaScript is empty. |
AttachedAssetsTest::testNoCache |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests that for assets with cache = FALSE, Drupal sets preprocess = FALSE. |
RenderTest::testProcessAttached |
function |
core/tests/Drupal/KernelTests/Core/Render/RenderTest.php |
Tests that we get an exception when we try to attach an illegal type. |
RenderAttachedTestController.php |
file |
core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php |
|
AttachedAssetsTest::testAddFiles |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests adding a CSS and a JavaScript file. |
AttachedAssetsTest::testSettings |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests JavaScript settings. |
render_attached_test.routing.yml |
file |
core/modules/system/tests/modules/render_attached_test/render_attached_test.routing.yml |
core/modules/system/tests/modules/render_attached_test/render_attached_test.routing.yml |
Connection::getAttachedDatabases |
function |
core/modules/sqlite/src/Driver/Database/sqlite/Connection.php |
Gets all the attached databases. |
StatisticsAttachedTest::$modules |
property |
core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php |
Modules to enable. |
statistics_test_attached.info.yml |
file |
core/modules/statistics/tests/themes/statistics_test_attached/statistics_test_attached.info.yml |
core/modules/statistics/tests/themes/statistics_test_attached/statistics_test_attached.info.yml |
MessageCommand::getAttachedAssets |
function |
core/lib/Drupal/Core/Ajax/MessageCommand.php |
Gets the attached assets. |
AttachedAssetsTest::$assetResolver |
property |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
The asset resolver service. |
AttachedAssetsTest::testAttributes |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests adding JavaScript files with additional attributes. |
AnnounceCommand::getAttachedAssets |
function |
core/lib/Drupal/Core/Ajax/AnnounceCommand.php |
Gets the attached assets. |
AttachedAssetsTest::testHeaderHTML |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests JS assets depending on the 'core/<head>' virtual library. |
CommandWithAttachedAssetsTrait.php |
file |
core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php |
|
CommandWithAttachedAssetsInterface |
interface |
core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php |
Interface for Ajax commands that render content and attach assets. |
RenderAttachedTestController::head |
function |
core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php |
Tests attached HTML head rendering. |
RenderAttachedTestController::feed |
function |
core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php |
Tests attached feed rendering. |
AttachedAssetsTest::testAggregation |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Integration test for CSS/JS aggregation. |
AttachedAssetsTest::testRenderOrder |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Tests JavaScript and CSS asset ordering. |
AttachedAssetsInterface::setSettings |
function |
core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php |
Sets the JavaScript settings that are attached to the current response. |
AttachedAssetsInterface::getSettings |
function |
core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php |
Returns the settings attached to the current response. |
AttachedAssetsTest::testLibraryAlter |
function |
core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php |
Adds a JavaScript library to the page and alters it. |
RenderAttachedTestController::header |
function |
core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php |
Tests attached HTML head rendering. |
DisplayTest::testGetAttachedDisplays |
function |
core/modules/views/tests/src/Functional/Plugin/DisplayTest.php |
Tests the getAttachedDisplays method. |