Skip to content

Kirby 4.2.0

new Collection()

Creates a new Collection with the given objects

new Collection(array $objects = [ ], object|null $parent = null)

Parameters

Name Type Default
$objects array [ ]
$parent object|null null

Parent class

Kirby\Cms\Collection