W3cubDocs

/Drupal 8

public function AttachmentsTrait::getAttachments

public AttachmentsTrait::getAttachments()

Gets attachments.

Return value

array The attachments.

Overrides AttachmentsInterface::getAttachments

File

core/lib/Drupal/Core/Render/AttachmentsTrait.php, line 22

Class

AttachmentsTrait
Provides an implementation of AttachmentsInterface.

Namespace

Drupal\Core\Render

Code

public function getAttachments() {
  return $this->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!AttachmentsTrait.php/function/AttachmentsTrait::getAttachments/8.1.x