Skip to content

Kirby 5.0.4

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

Parent class

Kirby\Cms\LanguageRules