Skip to content

Kirby 6.0.0

$collection->getIterator()

Returns an iterator for the elements

$collection->getIterator(): Iterator

Return type

Iterator<string, mixed>

Parent class

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