You are here

public static function LingotekRouteSubscriber::getSubscribedEvents in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  2. 4.0.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  3. 3.0.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  4. 3.1.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  5. 3.2.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  6. 3.3.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  7. 3.4.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  8. 3.5.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  9. 3.6.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  10. 3.7.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()
  11. 3.8.x src/Routing/LingotekRouteSubscriber.php \Drupal\lingotek\Routing\LingotekRouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/LingotekRouteSubscriber.php, line 107
Contains \Drupal\lingotek\Routing\LingotekRouteSubscriber.

Class

LingotekRouteSubscriber
Subscriber to add lingotek controller and generate bulk administration routes for content entity translation.

Namespace

Drupal\lingotek\Routing

Code

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

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