Skip to content

Kirby 5.1.2

$page->versions()

Creates an array with two versions of the content: latest and changes.

$page->versions(): array

Return type

array

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Panel\Page inherited from Kirby\Panel\Model