Skip to content

Kirby 5.0.4

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.

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');