Skip to content

Kirby 5.0.4

new VersionsButton()

new VersionsButton() 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 VersionsButton(Kirby\Cms\ModelWithContent $model, Kirby\Content\VersionId|string $versionId = 'latest')

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value
$versionId Kirby\Content\VersionIdorstring 'latest'

Parent class

Kirby\Panel\Ui\Buttons\VersionsButton