$content->update()
Updates the content in memory.
$content->update(array|null $content = null, bool $overwrite = false): Kirby\Content\Content
Parameters
| Name | Type | Default |
|---|---|---|
| $content | arrayornull |
null
|
| $overwrite | bool |
false
|
Return type
This method does not modify the existing $content object but returns a new object with the changes applied. Learn more →