AttachedAssetsInterface

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

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.
doc_Drupal
2016-10-29 08:44:57
Comments
Leave a Comment

Please login to continue.