public function EntityRouteAlterSubscriber::onRoutingRouteAlterSetType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::onRoutingRouteAlterSetType()
Applies parameter converters to route parameters.
Parameters
\Drupal\Core\Routing\RouteBuildEvent $event: The event to process.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteAlterSubscriber.php, line 51 - Contains \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber.
Class
- EntityRouteAlterSubscriber
- Registers the 'type' of route parameter names that match an entity type.
Namespace
Drupal\Core\EventSubscriberCode
public function onRoutingRouteAlterSetType(RouteBuildEvent $event) {
foreach ($event
->getRouteCollection() as $route) {
$this->resolverManager
->setRouteOptions($route);
}
}