function LazyRouteCollection::getIterator

Same name in other branches
  1. 10 core/lib/Drupal/Core/Routing/LazyRouteCollection.php \Drupal\Core\Routing\LazyRouteCollection::getIterator()
  2. 11.x core/lib/Drupal/Core/Routing/LazyRouteCollection.php \Drupal\Core\Routing\LazyRouteCollection::getIterator()

File

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

Class

LazyRouteCollection

Namespace

Drupal\Core\Routing

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.