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