$options->prepend()
Prepends an element to the data array
$options->prepend(string|Kirby\Option\Option ...$args): Kirby\Option\Options
Parameters
Name | Type | Default |
---|---|---|
...$args | string orKirby\Option\Option |
no default value |
Return type
This method modifies the existing $
object it is applied to and returns it again.
Parent class
Kirby\Option\Options
inherited from Kirby\Cms\Collection
Examples
$collection->prepend($object);
$collection->prepend('key', $object);