public static function Fast404EventSubscriber::getSubscribedEvents in Fast 404 8.2
Same name and namespace in other branches
- 8 src/EventSubscriber/Fast404EventSubscriber.php \Drupal\fast404\EventSubscriber\Fast404EventSubscriber::getSubscribedEvents()
Registers the methods in this class that should be listeners.
Return value
array An array of event listener definitions.
1 call to Fast404EventSubscriber::getSubscribedEvents()
- Fast404EventSubscriberTest::testGetSubscribedEvents in tests/
src/ Unit/ Fast404EventSubscriberTest.php - Tests event listener registration.
File
- src/
EventSubscriber/ Fast404EventSubscriber.php, line 78
Class
- Fast404EventSubscriber
- Class Fast404EventSubscriber.
Namespace
Drupal\fast404\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'onKernelRequest',
100,
];
$events[KernelEvents::EXCEPTION][] = [
'onNotFoundException',
0,
];
return $events;
}