Skip to content

Kirby 3.8.4

$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