function public function ArrayObject::addAttachments

8.x-3.x ArrayObject.php public ArrayObject::addAttachments(array $attachments)

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Source src/Utility/ArrayObject.php (line 88)

public function addAttachments(array $attachments) {
  BubbleableMetadata::createFromRenderArray($this->array)->addAttachments($attachments)->applyTo($this->array);
  return $this;
}