$kirby->language()
Returns the language by code or shortcut (default
, current
). Passing null
is an alias for passing current
$kirby->language(string|null $code = null): Kirby\Cms\Language|null
Parameters
Name | Type | Default |
---|---|---|
$code | string ornull |
null
|
Return types
Kirby\Cms\Language
ornull