Skip to content

$content->update()

Updates the content and returns a cloned object

$content->update(array $content = null, bool $overwrite = false): Kirby\Cms\Content

Parameters

Name Type Default
$content array null
$overwrite bool false

Return type

Kirby\Cms\Content

This method modifies the existing $content object it is applied to and returns it again.

Parent class

Kirby\Cms\Content