public function ParamConverterSubscriber::onRoutingRouteAlterSetParameterConverters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php \Drupal\Core\EventSubscriber\ParamConverterSubscriber::onRoutingRouteAlterSetParameterConverters()
Applies parameter converters to route parameters.
Parameters
\Drupal\Core\Routing\RouteBuildEvent $event: The event to process.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ ParamConverterSubscriber.php, line 44 - Contains \Drupal\Core\EventSubscriber\ParamConverterSubscriber.
Class
- ParamConverterSubscriber
- Event subscriber for registering parameter converters with routes.
Namespace
Drupal\Core\EventSubscriberCode
public function onRoutingRouteAlterSetParameterConverters(RouteBuildEvent $event) {
$this->paramConverterManager
->setRouteParameterConverters($event
->getRouteCollection());
}