Skip to content

Kirby 5.1.1

$model->versions()

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

$model->versions(): array

Return type

array

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

Parent class

Kirby\Panel\Model