protected function Router::getInitialRouteCollection in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::getInitialRouteCollection()
Returns a collection of potential matching routes for a request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request.
Return value
\Symfony\Component\Routing\RouteCollection The initial fetched route collection.
1 call to Router::getInitialRouteCollection()
- Router::matchRequest in core/
lib/ Drupal/ Core/ Routing/ Router.php
File
- core/
lib/ Drupal/ Core/ Routing/ Router.php, line 237
Class
- Router
- Router implementation in Drupal.
Namespace
Drupal\Core\RoutingCode
protected function getInitialRouteCollection(Request $request) {
return $this->routeProvider
->getRouteCollectionForRequest($request);
}