function ContentTranslationRouteSubscriber::getSubscribedEvents
Same name in other branches
- 8.9.x core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::getSubscribedEvents()
- 10 core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::getSubscribedEvents()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.