$haschildren->index() Creates a flat child index kirby/src/Cms/HasChildren.php#L203 $haschildren->index(bool $drafts = false): Kirby\Cms\Pages Parameters Name Type Default $drafts bool false Return type Kirby\Cms\Pages Parent class Kirby\Cms\HasChildren