Skip to content

Kirby 5.0.4

Snippet::file()

Absolute path to the file for the snippet/s taking snippets defined in plugins into account

Snippet::file(array|string $name): string|null

Parameters

Name Type Default
$namerequired arrayorstring no default value

Return types

stringornull

Parent class

Kirby\Template\Snippet