public function Router::getRouteCollection

Gets the RouteCollection instance associated with this Router.

Return value

RouteCollection A RouteCollection instance

Overrides RouterInterface::getRouteCollection

2 calls to Router::getRouteCollection()
Router::getGenerator in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Router.php
Gets the UrlGenerator instance associated with this Router.
Router::getMatcher in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Router.php
Gets the UrlMatcher instance associated with this Router.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Router.php, line 170

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() {
  if (null === $this->collection) {
    $this->collection = $this->loader
      ->load($this->resource, $this->options['resource_type']);
  }
  return $this->collection;
}