Skip to content

Kirby 5.0.4

$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
$keyrequired string no default value
$decode bool false

Return type

Kirby\Cms\LanguageVariable

This method modifies the existing $language object it is applied to and returns it again.

Parent class

Kirby\Cms\Language