Skip to content

Kirby 5.1.1

$page->inventory()

Returns the inventory of files children and content files

$page->inventory(): array

Return type

array

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

Parent class

Kirby\Cms\Page

The inventory array contains a list of all inventory items of the page, like the content files, children, files, meta files, etc.

Examples

<?php
dump($page->inventory());
?>