Skip to content

Kirby 6.0.0

$areas->map()

Map a function to each element

$areas->map(callable $callback): Areas

Parameters

Name Type Default
$callbackrequired callable no default value

Return type

Kirby\Panel\Areas

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

Parent class

Kirby\Panel\Areas inherited from Kirby\Toolkit\Collection