Skip to content

Kirby 4.2.0

$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

Kirby\Content\Content

This method does not modify the existing $content object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Content\Content