$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\Language orstring |
no default value |
Return type
bool
This method modifies the existing $language
object it is applied to and returns it again.