Skip to content

Kirby 5.2.2

$content->update()

Updates the content in memory.

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

Parameters

Name Type Default
$content arrayornull 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