Skip to content

Kirby 4.1.2

LanguageRules::create()

Validates if the language can be created

LanguageRules::create(Kirby\Cms\Language $language): bool

Parameters

Name Type Default
$language * Kirby\Cms\Language

Return type

bool

Exceptions

Type Description
Kirby\Exception\DuplicateException If the language already exists

Parent class

Kirby\Cms\LanguageRules