public static function EnforcedFormResponseSubscriber::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php \Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ EnforcedFormResponseSubscriber.php, line 39
Class
- EnforcedFormResponseSubscriber
- Handle the EnforcedResponseException and deliver an EnforcedResponse.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::EXCEPTION] = [
'onKernelException',
128,
];
$events[KernelEvents::RESPONSE] = [
'onKernelResponse',
128,
];
return $events;
}