Skip to content

Kirby 4.5.0

$pages->get()

Custom getter that is able to find extension pages

$pages->get(string $key, mixed $default = null): Kirby\Cms\Page|null

Parameters

Name Type Default
$key * string
$default mixed null

Return type

Kirby\Cms\Page|null

Parent class

Kirby\Cms\Pages

Example

<?= $page->children()->get('some-page')->title() ?>