You are here

public static function RouteSubscriber::getSubscribedEvents in Entityqueue 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 88

Class

RouteSubscriber
Subscriber for entityqueue routes.

Namespace

Drupal\entityqueue\Routing

Code

public static function getSubscribedEvents() {
  $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;
}