RouteSubscriberBase::onAlterRoutes

public RouteSubscriberBase::onAlterRoutes(RouteBuildEvent $event)

Delegates the route altering to self::alterRoutes().

Parameters

\Drupal\Core\Routing\RouteBuildEvent $event: The route build event.

File

core/lib/Drupal/Core/Routing/RouteSubscriberBase.php, line 35

Class

RouteSubscriberBase
Provides a base implementation for RouteSubscriber.

Namespace

Drupal\Core\Routing

Code

public function onAlterRoutes(RouteBuildEvent $event) {
  $collection = $event->getRouteCollection();
  $this->alterRoutes($collection);
}
doc_Drupal
2016-10-29 09:39:29
Comments
Leave a Comment

Please login to continue.