Reference

Guide

new Collection()

Creates a new Collection with the given objects

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

Parameters

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

Source code

kirby/src/Cms/Collection.php#L59