public function AttachmentsInterface::setAttachments in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Render/AttachmentsInterface.php \Drupal\Core\Render\AttachmentsInterface::setAttachments()
Sets attachments.
Parameters
array $attachments: The attachments to set.
Return value
$this
File
- core/
lib/ Drupal/ Core/ Render/ AttachmentsInterface.php, line 42
Class
- AttachmentsInterface
- Defines an interface for responses that can expose #attached metadata.
Namespace
Drupal\Core\RenderCode
public function setAttachments(array $attachments);