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

Breadcrumb

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

function RouterInterface::getRouteCollection

Gets the RouteCollection instance associated with this Router.

WARNING: This method should never be used at runtime as it is SLOW. You might use it in a cache warmer though.

3 methods override RouterInterface::getRouteCollection()
AccessAwareRouter::getRouteCollection in core/lib/Drupal/Core/Routing/AccessAwareRouter.php
Gets the RouteCollection instance associated with this Router.
Router::getRouteCollection in core/lib/Drupal/Core/Routing/Router.php
Gets the RouteCollection instance associated with this Router.
Router::getRouteCollection in vendor/symfony/routing/Router.php
Gets the RouteCollection instance associated with this Router.

File

vendor/symfony/routing/RouterInterface.php, line 32

Class

RouterInterface
RouterInterface is the interface that all Router classes must implement.

Namespace

Symfony\Component\Routing

Code

public function getRouteCollection() : RouteCollection;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal