Skip to content

Kirby 6.0.0

$languageVariable->update()

Sets a new value for the language variable

$languageVariable->update(string|array|null $value = null): LanguageVariable

Parameters

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

Return type

Kirby\Cms\LanguageVariable

This method does not modify the existing $languagevariable object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\LanguageVariable