Skip to content

Kirby 6.0.0

$page->inventory()

Returns the inventory of files children and content files

$page->inventory(): Inventory

Return type

Kirby\Cms\Inventory

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());
?>