function RulesUiRouteSubscriber::getSubscribedEvents

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() : array {
    $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;
}