function NodeAdminRouteSubscriber::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::getSubscribedEvents()
  2. 8.9.x core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::getSubscribedEvents()
  3. 11.x core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php, line 72

Class

NodeAdminRouteSubscriber
Sets the _admin_route for specific node-related routes.

Namespace

Drupal\node\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events = parent::getSubscribedEvents();
    $events[ConfigEvents::SAVE][] = [
        'onConfigSave',
        0,
    ];
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.