Skip to content

$user->changeLanguage()

Changes the user language

$user->changeLanguage(string $language): Kirby\Cms\User

Parameters

Name Type Default
$language * string

Return type

Kirby\Cms\User

This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\User