Skip to content

Kirby 5.2.1

$version->contentFile()

Provides simplified access to the absolute content file path. This should stay an internal method and be removed as soon as the dependency on file storage methods is resolved more clearly.

$version->contentFile() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$version->contentFile(Kirby\Cms\Language|string $language = 'default'): string

Parameters

Name Type Default
$language Kirby\Cms\Languageorstring 'default'

Return type

string

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

Parent class

Kirby\Content\Version