function LazyRouteCollection::all
Returns all routes in this collection.
Return value
\Symfony\Component\Routing\Route[] An array of routes
Overrides RouteCollection::all
2 calls to LazyRouteCollection::all()
- LazyRouteCollection::count in core/
lib/ Drupal/ Core/ Routing/ LazyRouteCollection.php - Gets the number of Routes in this collection.
- LazyRouteCollection::getIterator in core/
lib/ Drupal/ Core/ Routing/ LazyRouteCollection.php - Gets the current RouteCollection as an Iterator that includes all routes.
File
-
core/
lib/ Drupal/ Core/ Routing/ LazyRouteCollection.php, line 47
Class
Namespace
Drupal\Core\RoutingCode
public function all() : array {
return $this->provider
->getRoutesByNames(NULL);
}