Skip to content

Kirby 4.2.0

$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

Kirby\Cms\Pages

Parent class

Kirby\Cms\HasChildren