Skip to content

Kirby 6.0.0

$router->setLanguage()

Set the current language in multi-lang installations based on the language query parameter, the x-language request header or the session

$router->setLanguage(): string|null

Return types

stringornull

Parent class

Kirby\Panel\Router