interface 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

See also

\Drupal\Core\Render\AttachmentsTrait

File

core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 14

Namespace

Drupal\Core\Render

Members

Name Modifiers Type Description
AttachmentsInterface::addAttachments public function Adds attachments.
AttachmentsInterface::getAttachments public function Gets attachments.
AttachmentsInterface::setAttachments public function Sets attachments.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!AttachmentsInterface.php/interface/AttachmentsInterface/8.1.x