$tabs->set()
Adds a new element to the collection
$tabs->set(array|string $key, Tab|null $value = null): Tabs
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | arrayorstring |
no default value |
| $value | Kirby\Blueprint\Tabornull |
null
|
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