Skip to content

Kirby 6.0.1

$kirbyTag->file()

Finds a file for the given path or UUID. UUIDs are looked up in the files of the parent first. Paths are searched in the parent, then in the page of a file parent and finally with Kirby's global file finder.

$kirbyTag->file(string $path): File|null

Parameters

Name Type Default
$pathrequired string no default value

Return types

Kirby\Cms\Fileornull

Parent class

Kirby\Text\KirbyTag