Reference

$kirby->file()

Finds any file in the content directory

$kirby->file(string $path, $parent = null, bool $drafts = true): File|null

Parameters

Name Type Default Description
$path string
$parent mixed null
$drafts bool true

Return type

File|null

Source code

kirby/src/Cms/App.php#L433