Skip to content

Kirby 6.0.0

Pages::factory()

Creates a pages collection from an array of props

Pages::factory(array> $pages, Page|Site|null $model = null, bool|null $draft = null): Pages

Parameters

Name Type Default
$pagesrequired array<array<string, mixed>> no default value
$model Kirby\Cms\PageorKirby\Cms\Siteornull null
$draft boolornull null

Return type

Kirby\Cms\Pages

Parent class

Kirby\Cms\Pages