Reference

Guide

$page->inventory()

Returns the inventory of files children and content files

$page->inventory(): array

Return type

array

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

Example

<?php
a::show($page->inventory());
?>

Source code

kirby/src/Cms/Page.php#L496