function RouteProviderInterface::getAllRoutes

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteProviderInterface.php \Drupal\Core\Routing\RouteProviderInterface::getAllRoutes()
  2. 10 core/lib/Drupal/Core/Routing/RouteProviderInterface.php \Drupal\Core\Routing\RouteProviderInterface::getAllRoutes()
  3. 11.x core/lib/Drupal/Core/Routing/RouteProviderInterface.php \Drupal\Core\Routing\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.

4 methods override RouteProviderInterface::getAllRoutes()
MockRouteProvider::getAllRoutes in core/modules/system/src/Tests/Routing/MockRouteProvider.php
Returns all the routes on the system.
RouteProvider::getAllRoutes in core/tests/Drupal/KernelTests/RouteProvider.php
Returns all the routes on the system.
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 37

Class

RouteProviderInterface
Extends the router provider interface

Namespace

Drupal\Core\Routing

Code

public function getAllRoutes();

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