Skip to content

Kirby 4.1.2

$languages->map()

Map a function to each element

$languages->map(callable $callback): Kirby\Cms\Languages

Parameters

Name Type Default
$callback * callable

Return type

Kirby\Cms\Languages

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

Parent class

Kirby\Cms\Languages inherited from Kirby\Toolkit\Collection