Skip to content

Kirby 5.3.0

$lazyCollection->map()

Map a function to each element

$lazyCollection->map(callable $callback): Kirby\Cms\LazyCollection

Parameters

Name Type Default
$callbackrequired callable no default value

Return type

Kirby\Cms\LazyCollection

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

Parent class

Kirby\Cms\LazyCollection