Skip to content

Kirby 6.0.1

$fields->remove()

Removes an object

$fields->remove(string|Field $key): Fields

Parameters

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

Return type

Kirby\Form\Fields

This method modifies the existing $fields object it is applied to and returns it again.

Parent class

Kirby\Form\Fields inherited from Kirby\Cms\Collection