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