$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 | Description |
---|---|---|---|
$key |
string |
– | |
$default |
mixed |
null |
Return type
Kirby\Cms\Page
|null
Example
<?= $page->children()->get('some-page')->title() ?>