Skip to content

Kirby 5.0.1

$collection->getIterator()

Get an iterator for the items.

$collection->getIterator(): ArrayIterator

Return type

ArrayIterator<TKey, TValue>

Parent class

Kirby\Toolkit\Collection inherited from Kirby\Toolkit\Iterator