You are here

public static function ContentTranslationRouteSubscriber::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::getSubscribedEvents()
  2. 10 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\Routing

Code

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;
}