Reference

Guide

Page::factory()

Constructs a Page object and also takes page models into account.

Page::factory(mixed $props): Kirby\Cms\Page

Parameters

Name Type Default Description
$props mixed

Return type

Kirby\Cms\Page

The $props parameter

Property Type Description
blueprint array Blueprint definition
content array Field values
dirname string
draft bool If true, the page will be created as draft
model string Page model
num mixed Sorting number, use null for unlisted pages
parent Kirby\Cms\Page Parent page
root string
slug* string
template string
translations array Language codes with subarrays of field values
url string

Source code

kirby/src/Cms/Page.php#L446