function RouteCollection::getIterator
Gets the current RouteCollection as an Iterator that includes all routes.
It implements \IteratorAggregate.
Return value
\ArrayIterator<string, Route>
See also
all()
1 method overrides RouteCollection::getIterator()
- LazyRouteCollection::getIterator in core/
lib/ Drupal/ Core/ Routing/ LazyRouteCollection.php - Gets the current RouteCollection as an Iterator that includes all routes.
File
-
vendor/
symfony/ routing/ RouteCollection.php, line 72
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function getIterator() : \ArrayIterator {
return new \ArrayIterator($this->all());
}