public function RouteFilterSubscriber::onRouteAlter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/RouteFilterSubscriber.php \Drupal\Core\EventSubscriber\RouteFilterSubscriber::onRouteAlter()
Get the Response object from filtered route collection.
Parameters
\Drupal\Core\Routing\RouteBuildEvent $event: The route build event.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ RouteFilterSubscriber.php, line 43 - Contains \Drupal\Core\EventSubscriber\RouteFilterSubscriber.
Class
- RouteFilterSubscriber
- Listens to the filtered collection of route instances.
Namespace
Drupal\Core\EventSubscriberCode
public function onRouteAlter(RouteBuildEvent $event) {
$this->routeFilter
->setFilters($event
->getRouteCollection());
}