$api->page()
Returns the page object for the given id
$api->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
This method modifies the existing $api object it is applied to and returns it again.
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |
if the page cannot be found |