Skip to content

Kirby 6.0.1

$userActions->changeLanguage()

Changes the user language

$userActions->changeLanguage(string $language): UserActions

Parameters

Name Type Default
$languagerequired string no default value

Return type

Kirby\Cms\UserActions

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

Parent class

Kirby\Cms\UserActions