$collection->getIterator() Get an iterator for the items. kirby/src/Toolkit/Iterator.php#L36 $collection->getIterator(): ArrayIterator Return type ArrayIterator Parent class Kirby\Cms\Collection inherited from Kirby\Toolkit\Iterator