You are here

public function LazyRouteCollection::getIterator in Drupal 9

File

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

Class

LazyRouteCollection

Namespace

Drupal\Core\Routing

Code

public function getIterator() {
  return new \ArrayIterator($this
    ->all());
}