Skip to content

Kirby 3.5.7.1

$site->translation()

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

$site->translation(string $languageCode = null): Kirby\Cms\ContentTranslation|null

Parameters

Name Type Default
$languageCode string null

Return type

Kirby\Cms\ContentTranslation|null

Parent class

Kirby\Cms\Site inherited from Kirby\Cms\ModelWithContent