Skip to content

Kirby 3.9.8

$page->translation()

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

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

Parameters

Name Type Default
$languageCode string|null null

Return type

Kirby\Cms\ContentTranslation|null

Parent class

Kirby\Cms\Page inherited from Kirby\Cms\ModelWithContent