You are here

public static function AllowedLanguagesRouteSubscriber::getSubscribedEvents in Allowed Languages 2.x

Same name and namespace in other branches
  1. 8 src/Routing/AllowedLanguagesRouteSubscriber.php \Drupal\allowed_languages\Routing\AllowedLanguagesRouteSubscriber::getSubscribedEvents()

Overrides ContentTranslationRouteSubscriber::getSubscribedEvents

File

src/Routing/AllowedLanguagesRouteSubscriber.php, line 28

Class

AllowedLanguagesRouteSubscriber
Subscriber for entity translation routes.

Namespace

Drupal\allowed_languages\Routing

Code

public static function getSubscribedEvents() {

  // Should run after ContentTranslationRouteSubscriber. Therefore priority -220.
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    -220,
  ];
  return $events;
}