public static function EventSubscriber::getSubscribedEvents in JS Callback Handler 8.3
Same name in this branch
- 8.3 src/EventSubscriber.php \Drupal\js\EventSubscriber::getSubscribedEvents()
- 8.3 js_callback_examples/src/EventSubscriber.php \Drupal\js_callback_examples\EventSubscriber::getSubscribedEvents()
Overrides RouteSubscriberBase::getSubscribedEvents
File
- src/
EventSubscriber.php, line 56
Class
- EventSubscriber
- RouteSubscriber.
Namespace
Drupal\jsCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
$events[KernelEvents::EXCEPTION] = 'onException';
$events[KernelEvents::REQUEST] = 'onRequest';
$events[KernelEvents::RESPONSE][] = [
'onResponse',
-1000,
];
return $events;
}