You are here

public static function RouteSubscriber::getSubscribedEvents in Lightning Core 8.5

Same name and namespace in other branches
  1. 8 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
  2. 8.2 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
  3. 8.3 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
  4. 8.4 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 123

Class

RouteSubscriber
Dynamically alters various routes.

Namespace

Drupal\lightning_core\Routing

Code

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

  // We need to run after Field UI.
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    -110,
  ];
  return $events;
}