You are here

public function JsAlterEvent::__construct in Hook Event Dispatcher 8

JsAlterEvent constructor.

Parameters

array $javascript: Javascript.

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

File

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

Class

JsAlterEvent
Class JsAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Theme

Code

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