You are here

public function PageAttachmentsEvent::setAttachments in Hook Event Dispatcher 8

Set the attachments.

Parameters

array $attachments: The attachments array.

File

src/Event/Page/PageAttachmentsEvent.php, line 47

Class

PageAttachmentsEvent
Class PageAttachmentsEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Page

Code

public function setAttachments(array $attachments) {
  $this->attachments = $attachments;
}