function SpecialAttributesRouteSubscriber::onAlterRoutes
Same name in other branches
- 8.9.x core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php \Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber::onAlterRoutes()
- 10 core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php \Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber::onAlterRoutes()
- 11.x core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php \Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber::onAlterRoutes()
Delegates the route altering to self::alterRoutes().
Parameters
\Drupal\Core\Routing\RouteBuildEvent $event: The route build event.
Overrides RouteSubscriberBase::onAlterRoutes
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ SpecialAttributesRouteSubscriber.php, line 43
Class
- SpecialAttributesRouteSubscriber
- Provides a route subscriber which checks for invalid pattern variables.
Namespace
Drupal\Core\EventSubscriberCode
public function onAlterRoutes(RouteBuildEvent $event) {
$collection = $event->getRouteCollection();
$this->alterRoutes($collection);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.