$areas->map()
Map a function to each element
$areas->map(callable $callback): Areas
Parameters
| Name | Type | Default |
|---|---|---|
| $callbackrequired | callable |
no default value |
Return type
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