public static function DisabledLanguagesEventSubscriber::getSubscribedEvents in Disable language 8
File
- src/
EventSubscriber/ DisabledLanguagesEventSubscriber.php, line 84
Class
- DisabledLanguagesEventSubscriber
- Subscribe to KernelEvents::REQUEST events.
Namespace
Drupal\disable_language\EventSubscriberCode
public static function getSubscribedEvents() {
// On a normal request.
$events[KernelEvents::REQUEST][] = [
'checkForDisabledLanguageAndRedirect',
];
// On an access denied request.
$events[KernelEvents::EXCEPTION][] = [
'checkForDisabledLanguageAndRedirect',
0,
];
return $events;
}