public static function AjaxResponseSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php \Drupal\Core\EventSubscriber\AjaxResponseSubscriber::getSubscribedEvents()
- 10 core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php \Drupal\Core\EventSubscriber\AjaxResponseSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ AjaxResponseSubscriber.php, line 112
Class
- AjaxResponseSubscriber
- Response subscriber to handle AJAX responses.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = [
'onResponse',
-100,
];
$events[KernelEvents::REQUEST][] = [
'onRequest',
50,
];
return $events;
}