$file->translation()
Returns a single translation by language code If no code is specified the current translation is returned
$file->translation(string $languageCode = null): Kirby\Cms\ContentTranslation|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$languageCode |
string |
null |
Return type
Kirby\Cms\ContentTranslation
|null
Inherited from
Kirby\Cms\ModelWithContent