protected function RouteProviderLazyBuilder::getRouteProvider in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getRouteProvider()
- 9 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getRouteProvider()
Gets the real route provider service and rebuilds the router id necessary.
Return value
\Drupal\Core\Routing\RouteProviderInterface The route provider service.
6 calls to RouteProviderLazyBuilder::getRouteProvider()
- RouteProviderLazyBuilder::getAllRoutes in core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php - Returns all the routes on the system.
- RouteProviderLazyBuilder::getRouteByName in core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php - Find the route using the provided route name.
- RouteProviderLazyBuilder::getRouteCollectionForRequest in core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php - Finds routes that may potentially match the request.
- RouteProviderLazyBuilder::getRoutesByNames in core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php - Find many routes by their names using the provided list of names.
- RouteProviderLazyBuilder::getRoutesByPattern in core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php - Get all routes which match a certain pattern.
File
- core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php, line 65
Class
- RouteProviderLazyBuilder
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\RoutingCode
protected function getRouteProvider() {
if (!$this->rebuilt && !$this->rebuilding) {
$this->routeBuilder
->rebuild();
}
return $this->routeProvider;
}