function RouteSubscriberBase::onBuildRoutes
Delegates the route building to self::buildRoutes().
Parameters
\Drupal\Core\Routing\RouteBuildEvent $event: The route build event.
File
-
core/
lib/ Drupal/ Core/ Routing/ RouteSubscriberBase.php, line 49
Class
- RouteSubscriberBase
- Provides a base implementation for routing event subscribers.
Namespace
Drupal\Core\RoutingCode
public function onBuildRoutes(RouteBuildEvent $event) : void {
$event->getRouteCollection()
->addCollection($this->buildRoutes());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.