$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
This method modifies the existing $language
object it is applied to and returns it again.