Skip to content

Kirby 6.0.0

$fieldsets->add()

Adds a single object or an entire second collection to the current collection

$fieldsets->add(Collection
|Fieldset $object): Fieldsets

Parameters

Name Type Default
$objectrequired Kirby\Cms\Collection<Kirby\Cms\Fieldset>orKirby\Cms\Fieldset no default value

Return type

Kirby\Cms\Fieldsets

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