You are here

public static function RulesUiRouteSubscriber::getSubscribedEvents in Rules 8.3

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RulesUiRouteSubscriber.php, line 47

Class

RulesUiRouteSubscriber
Adds routes generated by the rules UI handlers.

Namespace

Drupal\rules\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;
}