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

Breadcrumb

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

function RouteProviderInterface::getAllRoutes

Returns all the routes on the system.

Usage of this method is discouraged for performance reasons. If possible, use RouteProviderInterface::getRoutesByNames() or RouteProviderInterface::getRoutesByPattern() instead.

Return value

\Symfony\Component\Routing\Route[] An iterator of routes keyed by route name.

2 methods override RouteProviderInterface::getAllRoutes()
RouteProvider::getAllRoutes in core/lib/Drupal/Core/Routing/RouteProvider.php
Returns all the routes on the system.
RouteProviderLazyBuilder::getAllRoutes in core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php
Returns all the routes on the system.

File

core/lib/Drupal/Core/Routing/RouteProviderInterface.php, line 100

Class

RouteProviderInterface
Defines the route provider interface.

Namespace

Drupal\Core\Routing

Code

public function getAllRoutes();
RSS feed
Powered by Drupal