public static function NodeAdminRouteSubscriber::getSubscribedEvents in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::getSubscribedEvents()
- 9 core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::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\EventSubscriberCode
public static function getSubscribedEvents() : array {
$events = parent::getSubscribedEvents();
$events[ConfigEvents::SAVE][] = [
'onConfigSave',
0,
];
return $events;
}