Skip to content

Kirby 5.0.4

$page->draft()

Searches for a draft child by ID

$page->draft(string $path): Kirby\Cms\Page|null

Parameters

Name Type Default
$pathrequired string no default value

Return types

Kirby\Cms\Pageornull

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page