$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
Example
<?php
dump($site->draft('notes/in-the-jungle-of-sumatra'));