function 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 - Tries to match a request with a set of routes.
File
-
core/
lib/ Drupal/ Core/ Routing/ Router.php, line 225
Class
- Router
- Router implementation in Drupal.
Namespace
Drupal\Core\RoutingCode
protected function getInitialRouteCollection(Request $request) {
return $this->routeProvider
->getRouteCollectionForRequest($request);
}