You are here

public function EventSubscriber::__construct in JS Callback Handler 8.3

Same name in this branch
  1. 8.3 src/EventSubscriber.php \Drupal\js\EventSubscriber::__construct()
  2. 8.3 js_callback_examples/src/EventSubscriber.php \Drupal\js_callback_examples\EventSubscriber::__construct()

EventSubscriber constructor.

Parameters

\Drupal\js\Js $js: The JS Callback service.

File

js_callback_examples/src/EventSubscriber.php, line 26

Class

EventSubscriber
EventSubscriber.

Namespace

Drupal\js_callback_examples

Code

public function __construct(Js $js) {
  $this->js = $js;
}