Skip to content

Kirby 6.0.0

$site->draft()

Searches for a draft child by ID

$site->draft(string $path): Page|null

Parameters

Name Type Default
$pathrequired string no default value

Return types

Kirby\Cms\Pageornull

Parent class

Kirby\Cms\Site

Examples

dump($site->draft('notes/in-the-jungle-of-sumatra'));