$fieldsets->update()
Updates an object in the collection
$fieldsets->update(string|Fieldset $key, Fieldset|null $object = null): Fieldsets
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Cms\Fieldset |
no default value | Key or object to update |
| $object | Kirby\Cms\Fieldsetornull |
null
|
New object for the key |
Return type
This method modifies the existing $fieldsets object it is applied to and returns it again.
Parent class
Kirby\Cms\Fieldsets
inherited from Kirby\Cms\Collection