Skip to content

Kirby 4.4.1

Pages::factory()

Creates a pages collection from an array of props

Pages::factory(array $pages, Kirby\Cms\Page|Kirby\Cms\Site|null $model = null, ?bool $draft = null): Kirby\Cms\Pages

Parameters

Name Type Default
$pages * array
$model Kirby\Cms\Page|Kirby\Cms\Site|null null
$draft bool|null null

Return type

Kirby\Cms\Pages

Parent class

Kirby\Cms\Pages