W3cubDocs

/Drupal 8

trait AttachmentsTrait

Provides an implementation of AttachmentsInterface.

Hierarchy

See also

\Drupal\Core\Render\AttachmentsInterface

File

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

Namespace

Drupal\Core\Render

Members

Name Modifiers Type Description
AttachmentsTrait::$attachments protected property The attachments for this response.
AttachmentsTrait::addAttachments public function Adds attachments. Overrides AttachmentsInterface::addAttachments
AttachmentsTrait::getAttachments public function Gets attachments. Overrides AttachmentsInterface::getAttachments
AttachmentsTrait::setAttachments public function Sets attachments. Overrides AttachmentsInterface::setAttachments

© 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/trait/AttachmentsTrait/8.1.x