Skip to content

Kirby 5.0.4

$fieldsets->remove()

Removes an object

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

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\Fieldset no default value the name of the key

Return type

Kirby\Cms\Fieldsets

This method does not modify the existing $fieldsets object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Fieldsets inherited from Kirby\Cms\Collection