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|null $draft = null): Kirby\Cms\Pages
Parameters
Name | Type | Default |
---|---|---|
$pagesrequired | array |
no default value |
$model | Kirby\Cms\Page orKirby\Cms\Site ornull |
null
|
$draft | bool ornull |
null
|