You are here

public static function FinalExceptionSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getSubscribedEvents()
  2. 9 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php, line 144

Class

FinalExceptionSubscriber
Last-chance handler for exceptions: the final exception subscriber.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() : array {

  // Run as the final (very late) KernelEvents::EXCEPTION subscriber.
  $events[KernelEvents::EXCEPTION][] = [
    'onException',
    -256,
  ];
  return $events;
}