Skip to content

Kirby 5.0.4

$files->findByKey()

Finds a file by its filename

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

Parameters

Name Type Default
$keyrequired string no default value

Return types

Kirby\Cms\Fileornull

This method modifies the existing $files object it is applied to and returns it again.

Parent class

Kirby\Cms\Files