LanguageRules::validLanguageName()
Validates if the language name is formatted correctly
Parameters
Name | Type | Default |
---|---|---|
$language * | Kirby\Cms\Language |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the language name is invalid |