You are here

public static function EventSubscriber::getSubscribedEvents in JS Callback Handler 8.3

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

File

js_callback_examples/src/EventSubscriber.php, line 33

Class

EventSubscriber
EventSubscriber.

Namespace

Drupal\js_callback_examples

Code

public static function getSubscribedEvents() {
  return [
    KernelEvents::REQUEST => [
      'onRequest',
    ],
  ];
}