Skip to content

Kirby 5.0.4

$language->is()

Checks if the language is the same as the given language or language code

$language->is(Kirby\Cms\Language|string $language): bool

Parameters

Name Type Default
$languagerequired Kirby\Cms\Languageorstring no default value

Return type

bool

This method modifies the existing $language object it is applied to and returns it again.

Parent class

Kirby\Cms\Language