Find::language()
Returns the language object for the given code
Find::language(string $code): Kirby\Cms\Language|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$coderequired | string |
no default value | Language code |
Return types
Kirby\Cms\Language
ornull
Exceptions
Type | Description |
---|---|
Kirby\Exception\NotFoundException |
if the language cannot be found |