$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 | stringornull |
null
|
Return types
Kirby\Cms\Languageornull
This method modifies the existing $app object it is applied to and returns it again.