Skip to content

Kirby 3.9.8

$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 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