Skip to content

Kirby 6.0.0

new Assets()

Creates a new Collection with the given objects

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

Parameters

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

Parent class

Kirby\Plugin\Assets inherited from Kirby\Cms\Collection