Skip to content

Kirby 4.5.0

$site->draft()

Searches for a draft child by ID

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

Parameters

Name Type Default
$path * string

Return type

Kirby\Cms\Page|null

Parent class

Kirby\Cms\Site

Example

<?php

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