public function AttachmentsInterface::addAttachments in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/AttachmentsInterface.php \Drupal\Core\Render\AttachmentsInterface::addAttachments()
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\RenderCode
public function addAttachments(array $attachments);