public function ArrayObject::addAttachments in Express 8
Adds attachments.
Parameters
array $attachments: The attachments to add.
Return value
$this
Overrides AttachmentsInterface::addAttachments
File
- themes/
contrib/ bootstrap/ src/ Utility/ ArrayObject.php, line 92 - Contains \Drupal\bootstrap\Utility\ArrayObject.
Class
- ArrayObject
- Custom ArrayObject implementation.
Namespace
Drupal\bootstrap\UtilityCode
public function addAttachments(array $attachments) {
BubbleableMetadata::createFromRenderArray($this->array)
->addAttachments($attachments)
->applyTo($this->array);
return $this;
}