Skip to content

Kirby 4.5.0

$modelwithcontent->translation()

Returns a single translation by language code If no code is specified the current translation is returned

$modelwithcontent->translation(?string $languageCode = null): Kirby\Content\ContentTranslation|null

Parameters

Name Type Default
$languageCode string|null null

Return type

Kirby\Content\ContentTranslation|null

Parent class

Kirby\Cms\ModelWithContent