You are here

public function LazyRouteCollection::all in Drupal 9

Returns all routes in this collection.

Return value

\Symfony\Component\Routing\Route[] An array of routes

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

File

core/lib/Drupal/Core/Routing/LazyRouteCollection.php, line 46

Class

LazyRouteCollection

Namespace

Drupal\Core\Routing

Code

public function all() {
  return $this->provider
    ->getRoutesByNames(NULL);
}