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.

\Drupal\Core\Render\AttachmentsResponseProcessorInterface $js_attachments_processor: The JS response attachments processor service.

File

src/EventSubscriber.php, line 38

Class

EventSubscriber
RouteSubscriber.

Namespace

Drupal\js

Code

public function __construct(Js $js, AttachmentsResponseProcessorInterface $js_attachments_processor) {
  $this->js = $js;
  $this->jsAttachmentsProcessor = $js_attachments_processor;
}