Version
The Version class handles all actions for a single version and is identified by a VersionId instance
Version
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.
-
new Version()
-
$version->content()
-
$version->create()
-
$version->delete()
-
$version->errors()
-
$version->exists()
-
$version->id()
-
$version->isIdentical()
-
$version->isLatest()
-
$version->isLocked()
-
$version->isValid()
-
$version->lock()
-
$version->model()
-
$version->modified()
-
$version->move()
-
$version->previewToken()
-
$version->publish()
-
$version->read()
-
$version->replace()
-
$version->save()
-
$version->sibling()
-
$version->touch()
-
$version->update()
-
$version->url()
Examples
// get all unsaved changes of page
$version = $page->version('changes');
// check if changes exist in a particular language
$version->exists('de');
version->exists('current');
version->exists('default');