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