$hasChildren->index()
Creates a flat child index
$hasChildren->index(bool $drafts = false): Kirby\Cms\Pages
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $drafts | bool |
false
|
If set to true, draft children are included |
Return type
This method modifies the existing $haschildren object it is applied to and returns it again.
Parent class
Kirby\Cms\HasChildren