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

Please login to continue.