AttachmentsInterface::getAttachments

public AttachmentsInterface::getAttachments() Gets attachments. Return value array The attachments. File core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 22 Class AttachmentsInterface Defines an interface for responses that can expose #attached metadata. Namespace Drupal\Core\Render Code public function getAttachments();

AttachmentsInterface::addAttachments

public AttachmentsInterface::addAttachments(array $attachments) Adds attachments. Parameters array $attachments: The attachments to add. Return value $this File core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 32 Class AttachmentsInterface Defines an interface for responses that can expose #attached metadata. Namespace Drupal\Core\Render Code public function addAttachments(array $attachments);

AttachmentsInterface

Defines an interface for responses that can expose #attached metadata. @todo If in Drupal 9, we remove attachments other than assets (libraries + drupalSettings), then we can look into unifying this with \Drupal\Core\Asset\AttachedAssetsInterface. Hierarchy interface \Drupal\Core\Render\AttachmentsInterface See also \Drupal\Core\Render\AttachmentsTrait File core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 14 Namespace Drupal\Core\Render Members Name Modifiers Type Des

AttachedAssetsInterface::setSettings

public AttachedAssetsInterface::setSettings(array $settings) Sets the JavaScript settings that are attached to the current response. Parameters array $settings: The needed JavaScript settings. Return value $this File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 55 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function setSettings(array $settings);

AttachedAssetsInterface::setLibraries

public AttachedAssetsInterface::setLibraries(array $libraries) Sets the asset libraries attached to the current response. Parameters string[] $libraries: A list of libraries, in the order they should be loaded. Return value $this File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 38 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function setLibraries(array $libraries);

AttachedAssetsInterface::setAlreadyLoadedLibraries

public AttachedAssetsInterface::setAlreadyLoadedLibraries(array $libraries) Sets the asset libraries that the current request marked as already loaded. Parameters string[] $libraries: The set of already loaded libraries. Return value $this File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 72 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function setAlreadyLoadedLibraries(array $libraries)

AttachedAssetsInterface::getSettings

public AttachedAssetsInterface::getSettings() Returns the settings attached to the current response. Return value array File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 62 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function getSettings();

AttachedAssetsInterface::getLibraries

public AttachedAssetsInterface::getLibraries() Returns the asset libraries attached to the current response. Return value string[] File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 45 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function getLibraries();

AttachedAssetsInterface::getAlreadyLoadedLibraries

public AttachedAssetsInterface::getAlreadyLoadedLibraries() Returns the set of already loaded asset libraries. Return value string[] File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 79 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function getAlreadyLoadedLibraries();

AttachedAssetsInterface::createFromRenderArray

public static AttachedAssetsInterface::createFromRenderArray(array $render_array) Creates an AttachedAssetsInterface object from a render array. Parameters array $render_array: A render array. Return value \Drupal\Core\Asset\AttachedAssetsInterface Throws \LogicException File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 28 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public static function cre