Skip to content

Kirby 6.0.0

$tabs->map()

Map a function to each element

$tabs->map(callable $callback): Tabs

Parameters

Name Type Default
$callbackrequired callable no default value

Return type

Kirby\Blueprint\Tabs

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

Parent class

Kirby\Blueprint\Tabs inherited from Kirby\Toolkit\Collection