Skip to content

Kirby 5.0.4

$api->pages()

Returns the subpages for the given parent. The subpages can be filtered by status (draft, listed, unlisted, published, all)

$api->pages(string|null $parentId = null, string|null $status = null): Kirby\Cms\Pages

Parameters

Name Type Default
$parentId stringornull null
$status stringornull null

Return type

Kirby\Cms\Pages

This method modifies the existing $api object it is applied to and returns it again.

Parent class

Kirby\Cms\Api