Skip to content

Kirby 4.4.1

$language->variable()

Returns a language variable object for the key in the translations array

$language->variable(string $key, bool $decode = false): Kirby\Cms\LanguageVariable

Parameters

Name Type Default
$key * string
$decode bool false

Return type

Kirby\Cms\LanguageVariable

Parent class

Kirby\Cms\Language