$hasChildren->findPageOrDraft()
Finds a single published or draft child
$hasChildren->findPageOrDraft(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 $haschildren object it is applied to and returns it again.
Parent class
Kirby\Cms\HasChildren