Reference

$pages->get()

Custom getter that is able to find extension pages

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

Parameters

Name Type Default Description
$key string
$default mixed null

Return type

Page|null

Example

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

Source code

kirby/src/Cms/Pages.php#L292