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