The attached assets collection for the current response.
Allows for storage of:
- an ordered list of asset libraries (to be loaded for the current response)
- attached JavaScript settings (to be loaded for the current response)
- a set of asset libraries that the client already has loaded (as indicated in the request, to *not* be loaded for the current response)
Hierarchy
- interface \Drupal\Core\Asset\AttachedAssetsInterface
See also
\Drupal\Core\Asset\AssetResolverInterface
File
- core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 16
Namespace
Drupal\Core\Asset
Members
Name | Modifiers | Type | Description |
---|---|---|---|
AttachedAssetsInterface::createFromRenderArray | public static | function | Creates an AttachedAssetsInterface object from a render array. |
AttachedAssetsInterface::getAlreadyLoadedLibraries | public | function | Returns the set of already loaded asset libraries. |
AttachedAssetsInterface::getLibraries | public | function | Returns the asset libraries attached to the current response. |
AttachedAssetsInterface::getSettings | public | function | Returns the settings attached to the current response. |
AttachedAssetsInterface::setAlreadyLoadedLibraries | public | function | Sets the asset libraries that the current request marked as already loaded. |
AttachedAssetsInterface::setLibraries | public | function | Sets the asset libraries attached to the current response. |
AttachedAssetsInterface::setSettings | public | function | Sets the JavaScript settings that are attached to the current response. |
Please login to continue.