Skip to content

Kirby 4.5.0

$collection->getIterator()

Get an iterator for the items.

$collection->getIterator(): ArrayIterator

Return type

ArrayIterator

Parent class

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