function Router::getRouteCollection

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::getRouteCollection()
  2. 10 core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::getRouteCollection()
  3. 11.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::getRouteCollection()

File

core/lib/Drupal/Core/Routing/Router.php, line 327

Class

Router
Router implementation in Drupal.

Namespace

Drupal\Core\Routing

Code

public function getRouteCollection() : RouteCollection {
    return new LazyRouteCollection($this->routeProvider);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.