You are here

public function PageAttachmentsEvent::__construct in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Theme/PageAttachmentsEvent.php \Drupal\core_event_dispatcher\Event\Theme\PageAttachmentsEvent::__construct()

PageAttachmentsEvent constructor.

Parameters

array $attachments: The attachments array.

File

modules/core_event_dispatcher/src/Event/Theme/PageAttachmentsEvent.php, line 27

Class

PageAttachmentsEvent
Class PageAttachmentsEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

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