$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 | string ornull |
null
|
$status | string ornull |
null
|
Return type
This method modifies the existing $api
object it is applied to and returns it again.