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
Name | Type(s) | Description |
---|---|---|
language | Language, string, int | Language object, name, or ID |
Return value
self
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.236