public function AttachmentsInterface::setAttachments

public AttachmentsInterface::setAttachments(array $attachments)

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\Render

Code

public function setAttachments(array $attachments);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!AttachmentsInterface.php/function/AttachmentsInterface::setAttachments/8.1.x