$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\Language orstring |
no default value |
$toVersionId | Kirby\Content\VersionId ornull |
null
|
$toLanguage | Kirby\Cms\Language orstring ornull |
null
|
$toStorage | Kirby\Content\Storage ornull |
null
|
Exceptions
Type | Description |
---|---|
Kirby\Exception\NotFoundException |
If the version does not exist |