Skip to content

Kirby 5.0.4

$storage->move()

Moves content from one version-language combination to another

$storage->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.

$storage->move(Kirby\Content\VersionId $fromVersionId, Kirby\Cms\Language $fromLanguage, Kirby\Content\VersionId|null $toVersionId = null, Kirby\Cms\Language|null $toLanguage = null, Kirby\Content\Storage|null $toStorage = null): void

Parameters

Name Type Default
$fromVersionIdrequired Kirby\Content\VersionId no default value
$fromLanguagerequired Kirby\Cms\Language no default value
$toVersionId Kirby\Content\VersionIdornull null
$toLanguage Kirby\Cms\Languageornull null
$toStorage Kirby\Content\Storageornull null

Parent class

Kirby\Content\Storage