You are here

public function SpecialAttributesRouteSubscriber::onAlterRoutes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 48
Contains \Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber.

Class

SpecialAttributesRouteSubscriber
Provides a route subscriber which checks for invalid pattern variables.

Namespace

Drupal\Core\EventSubscriber

Code

public function onAlterRoutes(RouteBuildEvent $event) {
  $collection = $event
    ->getRouteCollection();
  $this
    ->alterRoutes($collection);
}