Skip to content

Kirby 4.4.1

Find::language()

Returns the language object for the given code

Find::language(string $code): Kirby\Cms\Language|null

Parameters

Name Type Default Description
$code * string Language code

Return type

Kirby\Cms\Language|null

Exceptions

Type Description
Kirby\Exception\NotFoundException if the language cannot be found

Parent class

Kirby\Cms\Find