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