You are here

public static function NodeAdminRouteSubscriber::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::getSubscribedEvents()
  2. 10 core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

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

Class

NodeAdminRouteSubscriber
Sets the _admin_route for specific node-related routes.

Namespace

Drupal\node\EventSubscriber

Code

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