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