public static function LanguageSelectionPageSubscriber::getSubscribedEvents in Language Selection Page 8.2
File
- src/
EventSubscriber/ LanguageSelectionPageSubscriber.php, line 92
Class
- LanguageSelectionPageSubscriber
- Provides a LanguageSelectionPageSubscriber.
Namespace
Drupal\language_selection_page\EventSubscriberCode
public static function getSubscribedEvents() {
// You can set the order of execution of this event callback in the array.
// Find the order of execution by doing this in the Drupal Root:
// grep "$events[KernelEvents::RESPONSE][]" . -R | grep -v 'Test'
// The value is currently set to -50, feel free to adjust if needed.
$events[KernelEvents::RESPONSE][] = [
'redirectToLanguageSelectionPage',
-50,
];
return $events;
}