$user→setLanguage()
Set language for user (quietly)
- Sets the language without tracking it as a change to the user.
- If language support is not installed this method silently does nothing.
Available since version 3.0.186.
Usage
$self = $user->setLanguage($language);Arguments
Exceptions
Method can throw exceptions on error:
WireException- if language support is installed and given an invalid/unknown language
API reference based on ProcessWire core version 3.0.252