$storage->create()
Creates a new version
$storage->create()
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->create(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 |