public static function RedirectSubscriber::getSubscribedEvents in Url Redirect 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/RedirectSubscriber.php \Drupal\url_redirect\EventSubscriber\RedirectSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ RedirectSubscriber.php, line 87
Class
Namespace
Drupal\url_redirect\EventSubscriberCode
public static function getSubscribedEvents() {
// This needs to be executed before RouterListener::onKernelRequest() which has 32
// priority Otherwise, that aborts the request if no matching route is found.
$events[KernelEvents::REQUEST][] = [
'requestRedirect',
33,
];
$events[KernelEvents::EXCEPTION][] = [
'exceptionRedirect',
1,
];
return $events;
}