Skip to content

Kirby 5.0.4

$file->versions()

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

$file->versions(): array

Return type

array

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

Parent class

Kirby\Panel\File inherited from Kirby\Panel\Model