Skip to content

Kirby 3.6.6

$fields->map()

Map a function to each element

$fields->map(callable $callback): Kirby\Form\Fields

Parameters

Name Type Default
$callback * callable

Return type

Kirby\Form\Fields

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

Parent class

Kirby\Form\Fields inherited from Kirby\Toolkit\Collection