Skip to content

Kirby 5.0.4

new Versions()

Creates a new Collection with the given objects

new Versions(iterable $objects = [ ], object|null $parent = null)

Parameters

Name Type Default Description
$objects iterable [ ]
$parent objectornull null Stores the parent object,
which is needed in some collections
to get the finder methods right

Parent class

Kirby\Content\Versions inherited from Kirby\Cms\Collection