You are here

public function LibraryInfoAlterEvent::__construct in Hook Event Dispatcher 3.x

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

LibraryInfoAlterEvent constructor.

Parameters

array $libraries: An associative array of libraries registered by $extension. Keyed by internal library.

string $extension: Can either be 'core' or the machine name of the extension that registered the libraries.

File

modules/core_event_dispatcher/src/Event/Theme/LibraryInfoAlterEvent.php, line 38

Class

LibraryInfoAlterEvent
Class LibraryInfoAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

public function __construct(array &$libraries, string $extension) {
  $this->libraries =& $libraries;
  $this->extension = $extension;
}