function ParamConverterSubscriber::onRoutingRouteAlterSetParameterConverters

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php \Drupal\Core\EventSubscriber\ParamConverterSubscriber::onRoutingRouteAlterSetParameterConverters()
  2. 10 core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php \Drupal\Core\EventSubscriber\ParamConverterSubscriber::onRoutingRouteAlterSetParameterConverters()
  3. 11.x 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 39

Class

ParamConverterSubscriber
Event subscriber for registering parameter converters with routes.

Namespace

Drupal\Core\EventSubscriber

Code

public function onRoutingRouteAlterSetParameterConverters(RouteBuildEvent $event) {
    $this->paramConverterManager
        ->setRouteParameterConverters($event->getRouteCollection());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.