RouteProviderInterface::getAllRoutes

public 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.

File

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

Class

RouteProviderInterface
Extends the router provider interface

Namespace

Drupal\Core\Routing

Code

public function getAllRoutes();
doc_Drupal
2016-10-29 09:39:20
Comments
Leave a Comment

Please login to continue.