function EntityRouteAlterSubscriber::getSubscribedEvents
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::getSubscribedEvents()
- 10 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::getSubscribedEvents()
- 11.x core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::getSubscribedEvents()
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteAlterSubscriber.php, line 55
Class
- EntityRouteAlterSubscriber
- Registers the 'type' of route parameter names that match an entity type.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER][] = [
'onRoutingRouteAlterSetType',
-150,
];
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.