$content->update()
Updates the content and returns a cloned object
$content->update(?array $content = null, bool $overwrite = false): Kirby\Content\Content
Parameters
Name | Type | Default |
---|---|---|
$content | array |null |
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 →