You are here

public function JsAlterEvent::__construct in Hook Event Dispatcher 8.2

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

JsAlterEvent constructor.

Parameters

array $javascript: Javascript.

\Drupal\Core\Asset\AttachedAssetsInterface $attachedAssets: AttachedAssets.

File

modules/core_event_dispatcher/src/Event/Theme/JsAlterEvent.php, line 37

Class

JsAlterEvent
Class JsAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

public function __construct(array &$javascript, AttachedAssetsInterface $attachedAssets) {
  $this->javascript =& $javascript;
  $this->attachedAssets = $attachedAssets;
}