public function EntityRouteAlterSubscriber::onRoutingRouteAlterSetType
public EntityRouteAlterSubscriber::onRoutingRouteAlterSetType(RouteBuildEvent $event)
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 46
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); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!EntityRouteAlterSubscriber.php/function/EntityRouteAlterSubscriber::onRoutingRouteAlterSetType/8.1.x