Skip to content

Kirby 6.0.0

$fieldsets->append()

Appends an element to the data array

$fieldsets->append(string|Fieldset ...$args): Fieldsets

Parameters

Name Type Default
...$args stringorKirby\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

Examples

$collection->append($object);
$collection->append('key', $object);