public static function ContentTranslationRouteSubscriber::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::getSubscribedEvents()
Overrides RouteSubscriberBase::getSubscribedEvents
File
- core/
modules/ content_translation/ src/ Routing/ ContentTranslationRouteSubscriber.php, line 176
Class
- ContentTranslationRouteSubscriber
- Subscriber for entity translation routes.
Namespace
Drupal\content_translation\RoutingCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
// Should run after AdminRouteSubscriber so the routes can inherit admin
// status of the edit routes on entities. Therefore priority -210.
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
-210,
];
return $events;
}