LanguageRules::validLanguageVariables()
Validates the custom variables of a language. Only keys that are new or whose value changed are checked, so that a variable which is already stored never blocks an unrelated update.
LanguageRules::validLanguageVariables(Kirby\Cms\Language $newLanguage, Kirby\Cms\Language|null $oldLanguage = null): void
Parameters
| Name | Type | Default |
|---|---|---|
| $newLanguagerequired | Kirby\Cms\Language |
no default value |
| $oldLanguage | Kirby\Cms\Languageornull |
null
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If a variable key is invalid |