public function RouteProvider::getAllRoutes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::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.
Overrides RouteProviderInterface::getAllRoutes
File
- core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php, line 370 - Contains \Drupal\Core\Routing\RouteProvider.
Class
- RouteProvider
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\RoutingCode
public function getAllRoutes() {
return new PagedRouteCollection($this);
}