Skip to content

Kirby 5.1.4

$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

This method modifies the existing $haschildren object it is applied to and returns it again.

Parent class

Kirby\Cms\HasChildren