public static function AllowedLanguagesRouteSubscriber::getSubscribedEvents in Allowed Languages 2.x
Same name and namespace in other branches
- 8 src/Routing/AllowedLanguagesRouteSubscriber.php \Drupal\allowed_languages\Routing\AllowedLanguagesRouteSubscriber::getSubscribedEvents()
Overrides ContentTranslationRouteSubscriber::getSubscribedEvents
File
- src/
Routing/ AllowedLanguagesRouteSubscriber.php, line 28
Class
- AllowedLanguagesRouteSubscriber
- Subscriber for entity translation routes.
Namespace
Drupal\allowed_languages\RoutingCode
public static function getSubscribedEvents() {
// Should run after ContentTranslationRouteSubscriber. Therefore priority -220.
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
-220,
];
return $events;
}