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