Reference

Guide

$files->findByKey()

Alias for FilesFinder::findById() which is used internally in the Files collection to map the get method correctly.

$files->findByKey(string $key): File|null

Parameters

Name Type Default Description
$key string

Return type

File|null

Source code

kirby/src/Cms/Files.php#L119