UserRules::validLanguage()
Validates a user language code
Parameters
Name | Type | Default |
---|---|---|
$user * | Kirby\Cms\User |
– |
$language * | string |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the language does not exist |