Skip to content

Kirby 6.0.0

$fieldsets->remove()

Removes an object

$fieldsets->remove(string|Fieldset $key): Fieldsets

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\Fieldset no default value Key or object to remove

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