Skip to content

Page::model()

Creates a page model if it has been registered

Page::model(string $name, array $props = [ ]): Kirby\Cms\Page

Parameters

Name Type Default
$name * string
$props array [ ]

Return type

Kirby\Cms\Page

This method does not modify the existing $page object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Page