Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExceptionLoggingSubscriber.php

function ExceptionLoggingSubscriber::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php, line 124

Class

ExceptionLoggingSubscriber
Log exceptions without further handling.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[KernelEvents::EXCEPTION][] = [
        'onException',
        50,
    ];
    return $events;
}
RSS feed
Powered by Drupal