Skip to content

Kirby 5.0.4

$storage->update()

Updates the content fields of an existing version

$storage->update() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$storage->update(Kirby\Content\VersionId $versionId, Kirby\Cms\Language $language, array $fields): void

Parameters

Name Type Default Description
$versionIdrequired Kirby\Content\VersionId no default value
$languagerequired Kirby\Cms\Language no default value
$fieldsrequired array<string, string> no default value Content fields

Exceptions

Type Description
Kirby\Exception\Exception If the file cannot be written

Parent class

Kirby\Content\Storage