$storage->copy()
Copies content from one version-language combination to another
$storage->copy()
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->copy(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\VersionId ornull |
null
|
$toLanguage | Kirby\Cms\Language ornull |
null
|
$toStorage | Kirby\Content\Storage ornull |
null
|