$pages->findByKey()
Finds a page by its ID or URI
$pages->findByKey(string|null $key = null): Page|null
Parameters
| Name | Type | Default |
|---|---|---|
| $key | stringornull |
null
|
Return types
Kirby\Cms\Pageornull
Finds a page by its ID or URI
$pages->findByKey(string|null $key = null): Page|null
| Name | Type | Default |
|---|---|---|
| $key | stringornull |
null
|
Kirby\Cms\Pageornull