Skip to content

Kirby 4.4.1

$pluginassets->map()

Map a function to each element

$pluginassets->map(callable $callback): Kirby\Cms\PluginAssets

Parameters

Name Type Default
$callback * callable

Return type

Kirby\Cms\PluginAssets

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

Parent class

Kirby\Cms\PluginAssets inherited from Kirby\Toolkit\Collection