You are here

public static function ContentTranslationRouteSubscriber::getSubscribedEvents in Drupal 10

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

Code

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