Skip to content

Kirby 6.0.1

$hasChildren->index()

Creates a flat child index

$hasChildren->index(bool $drafts = false): Pages

Parameters

Name Type Default Description
$drafts bool false If set to true, draft children are included

Return type

Kirby\Cms\Pages

Parent class

Kirby\Cms\HasChildren