$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
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