# $productPage->index()

> Creates a flat child index

- Source: `src/Cms/HasChildren.php#L161` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/HasChildren.php#L161>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$productPage->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

`Wagnerwagner\Merx\ProductPage` inherited from `Kirby\Cms\Page`
