$memoryStorage->update()
Updates the content fields of an existing version
$memoryStorage->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\MemoryStorage
inherited from Kirby\Content\Storage