Skip to content

Kirby 4.4.1

$site->findPageOrDraft()

Finds a single published or draft child

$site->findPageOrDraft(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->findPageOrDraft('notes/in-the-jungle-of-sumatra'));