$fieldsets->add()
Adds a single object or an entire second collection to the current collection
$fieldsets->add(Kirby\Cms\Collection|array|Kirby\Cms\Fieldset $object): Kirby\Cms\Fieldsets
Parameters
| Name | Type | Default |
|---|---|---|
| $objectrequired | Kirby\Cms\Collection<TValue>orarray<TValue>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