$version->move()
Moves the version to a new language and/or version
$version->move() 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.
$version->move(Kirby\Cms\Language|string $fromLanguage, Kirby\Content\VersionId|null $toVersionId = null, Kirby\Cms\Language|string|null $toLanguage = null, Kirby\Content\Storage|null $toStorage = null): void
Parameters
| Name | Type | Default |
|---|---|---|
| $fromLanguagerequired | Kirby\Cms\Languageorstring |
no default value |
| $toVersionId | Kirby\Content\VersionIdornull |
null
|
| $toLanguage | Kirby\Cms\Languageorstringornull |
null
|
| $toStorage | Kirby\Content\Storageornull |
null
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |
If the version does not exist |