$options->remove()
Removes an object
$options->remove(string|Option $key): Options
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Option\Option |
no default value | Key or object to remove |
Return type
This method modifies the existing $options object it is applied to and returns it again.
Parent class
Kirby\Option\Options
inherited from Kirby\Cms\Collection