Skip to content

Kirby 5.0.2

$page->inventory()

Returns the inventory of files children and content files

$page->inventory(): array

Return type

array

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