Skip to content

Kirby 4.5.0

$api->page()

Returns the page object for the given id

$api->page(string $id): Kirby\Cms\Page|null

Parameters

Name Type Default Description
$id * string Page's id

Return type

Kirby\Cms\Page|null

Exceptions

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

Parent class

Kirby\Cms\Api