Skip to content

Kirby 3.8.4

$file->contentFile()

Returns the absolute path to the content file

$file->contentFile(string $languageCode = null, bool $force = false): string

Parameters

Name Type Default
$languageCode string null
$force bool false

Return type

string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the language for the given code does not exist

Parent class

Kirby\Cms\File inherited from Kirby\Cms\ModelWithContent