Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Router.php

function Router::getRouteCollection

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::getRouteCollection()

Overrides RouterInterface::getRouteCollection

4 calls to Router::getRouteCollection()
Router::getGenerator in vendor/symfony/routing/Router.php
Gets the UrlGenerator instance associated with this Router.
Router::getGeneratorDumperInstance in vendor/symfony/routing/Router.php
Router::getMatcher in vendor/symfony/routing/Router.php
Gets the UrlMatcher or RequestMatcher instance associated with this Router.
Router::getMatcherDumperInstance in vendor/symfony/routing/Router.php

File

vendor/symfony/routing/Router.php, line 140

Class

Router
The Router class is an example of the integration of all pieces of the routing system for easier use.

Namespace

Symfony\Component\Routing

Code

public function getRouteCollection() : RouteCollection {
    return $this->collection ??= $this->loader
        ->load($this->resource, $this->options['resource_type']);
}
RSS feed
Powered by Drupal