function AttachmentsInterface::addAttachments

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/AttachmentsInterface.php \Drupal\Core\Render\AttachmentsInterface::addAttachments()
  2. 8.9.x core/lib/Drupal/Core/Render/AttachmentsInterface.php \Drupal\Core\Render\AttachmentsInterface::addAttachments()
  3. 10 core/lib/Drupal/Core/Render/AttachmentsInterface.php \Drupal\Core\Render\AttachmentsInterface::addAttachments()

Merges an array of attached data into this object's collection.

Parameters

array $attachments: The attachments to add.

Return value

$this

File

core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 56

Class

AttachmentsInterface
The attached metadata collection for a renderable element.

Namespace

Drupal\Core\Render

Code

public function addAttachments(array $attachments);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.