You are here

public function AttachmentsInterface::addAttachments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 37
Contains \Drupal\Core\Render\AttachmentsInterface.

Class

AttachmentsInterface
Defines an interface for responses that can expose #attached metadata.

Namespace

Drupal\Core\Render

Code

public function addAttachments(array $attachments);