Skip to content

Kirby 6.0.0

new Blocks()

Creates a new collection of items

new Blocks(iterable $objects = [], array $options = [])

Parameters

Name Type Default Description
$objects iterable<Kirby\Cms\Block> []
$options array<string, mixed> [] Options incl. the parent model and field

Parent class

Kirby\Cms\Blocks inherited from Kirby\Cms\Items