Skip to content

Kirby 3.9.8

LanguageRules::validLanguageName()

Validates if the language name is formatted correctly

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

Parameters

Name Type Default
$language * Kirby\Cms\Language

Return type

bool

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the language name is invalid

Parent class

Kirby\Cms\LanguageRules