public function JsAlterEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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\ThemeCode
public function __construct(array &$javascript, AttachedAssetsInterface $attachedAssets) {
$this->javascript =& $javascript;
$this->attachedAssets = $attachedAssets;
}