public static function TmgmtContentRouteSubscriber::getSubscribedEvents

File

sources/content/src/Routing/TmgmtContentRouteSubscriber.php, line 30

Class

TmgmtContentRouteSubscriber
Subscriber to alter entity translation routes.

Namespace

Drupal\tmgmt_content\Routing

Code

public static function getSubscribedEvents() : array {
  $events = parent::getSubscribedEvents();

  //  ContentTranslationRouteSubscriber is -100, make sure we are later.
  $events[RoutingEvents::ALTER] = array(
    'onAlterRoutes',
    -211,
  );
  return $events;
}