Skip to content

Kirby 3.5.7.1

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