new Page()

Creates a new page object

new Page(array $props)


Name Type Default Description
$props array

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