LanguageRules::create()
Validates if the language can be created
LanguageRules::create(Kirby\Cms\Language $language): void
Parameters
Name | Type | Default |
---|---|---|
$languagerequired | Kirby\Cms\Language |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\DuplicateException |
If the language already exists |
Kirby\Exception\PermissionException |
If current user has not sufficient permissions |