public static function RedirectRequestSubscriber::getSubscribedEvents in Redirect 8
File
- src/
EventSubscriber/ RedirectRequestSubscriber.php, line 201
Class
- RedirectRequestSubscriber
- Redirect subscriber for controller requests.
Namespace
Drupal\redirect\EventSubscriberCode
public static function getSubscribedEvents() {
// This needs to run before RouterListener::onKernelRequest(), which has
// a priority of 32. Otherwise, that aborts the request if no matching
// route is found.
$events[KernelEvents::REQUEST][] = [
'onKernelRequestCheckRedirect',
33,
];
return $events;
}