Skip to content

Kirby 3.9.8

$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