Skip to content

Kirby 5.0.4

Find::page()

Returns the page object for the given id

Find::page(string $id): Kirby\Cms\Page|null

Parameters

Name Type Default Description
$idrequired string no default value Page's id

Return types

Kirby\Cms\Pageornull

Exceptions

Type Description
Kirby\Exception\NotFoundException if the page cannot be found

Parent class

Kirby\Cms\Find