$files->keys()
Returns an array of all keys
$files->keys(): array
Return type
array
Parent class
Kirby\Cms\Files
inherited from Kirby\Toolkit\Iterator
Example
Example Files
- document.pdf
- numbers.xls
- myimage.jpg
- download.zip
<?php dump($page->files()->keys()) ?>
/*
[
'document.pdf',
'numbers.xls',
'myimage.jpg',
'download.zip'
]
*/