Skip to content

Kirby 4.2.0

$api->pages()

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

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

Parameters

Name Type Default
$parentId string|null null
$status string|null null

Return type

Kirby\Cms\Pages

Parent class

Kirby\Cms\Api