Skip to content

Kirby 5.3.0

$lazyCollection->getIterator()

Returns an iterator for the elements

$lazyCollection->getIterator(): Iterator

Return type

Iterator<TKey, TValue>

This method modifies the existing $lazycollection object it is applied to and returns it again.

Parent class

Kirby\Cms\LazyCollection