$file->files()
Returns the parent Files collection
$file->files(): Kirby\Cms\Files
Return type
Parent class
Example
if($file = $page->files()->first()) {
echo 'The first file in the collection is: ' . $file->title();
}
Returns the parent Files collection
$file->files(): Kirby\Cms\Files
if($file = $page->files()->first()) {
echo 'The first file in the collection is: ' . $file->title();
}