function 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() : array {
  $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.
