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