Skip to content

Kirby 6.0.0

LanguageVariable::create()

Creates a new language variable. This will be added to the default language first and can then be translated in other languages.

LanguageVariable::create(string $key, string|array|null $value = null): LanguageVariable

Parameters

Name Type Default
$keyrequired string no default value
$value stringorarray<array-key, string>ornull null

Return type

Kirby\Cms\LanguageVariable

Parent class

Kirby\Cms\LanguageVariable