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 | Description |
---|---|---|---|
AttachmentsInterface::addAttachments | public | function | Adds attachments. |
AttachmentsInterface::getAttachments | public | function | Gets attachments. |
AttachmentsInterface::setAttachments | public | function | Sets attachments. |
Please login to continue.