$areas->prepend()
Prepends an element to the data array
$areas->prepend(string|Area ...$args): Areas
Parameters
| Name | Type | Default |
|---|---|---|
| ...$args | stringorKirby\Panel\Area |
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\Cms\Collection
Examples
$collection->prepend($object);
$collection->prepend('key', $object);