$options->update()
Updates an object in the collection
$options->update(string|Option $key, Option|null $object = null): Options
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Option\Option |
no default value | Key or object to update |
| $object | Kirby\Option\Optionornull |
null
|
New object for the key |
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