Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\UserLanguageLookup Interface Reference

Service for looking up the languages understood by a user. More...

+ Inheritance diagram for Wikibase\Lib\UserLanguageLookup:

Public Member Functions

 getUserSpecifiedLanguages (User $user)
 Returns a list of languages the user specified in addition to the non-optional interface language.
 
 getAllUserLanguages (User $user)
 Collects all languages from all user settings we can reach at this point.
 

Detailed Description

Service for looking up the languages understood by a user.

Author
Daniel Kinzler
Thiemo Kreuz
Marius Hoch

Member Function Documentation

◆ getAllUserLanguages()

Wikibase\Lib\UserLanguageLookup::getAllUserLanguages ( User $user)

Collects all languages from all user settings we can reach at this point.

Note: This can contain language codes not actually valid to MediaWiki or valid at all.

Parameters
User$userThe current user.
Returns
string[] List of all the user's language codes.

Implemented in Wikibase\Repo\BabelUserLanguageLookup.

◆ getUserSpecifiedLanguages()

Wikibase\Lib\UserLanguageLookup::getUserSpecifiedLanguages ( User $user)

Returns a list of languages the user specified in addition to the non-optional interface language.

Note: This can contain language codes not actually valid to MediaWiki or valid at all.

Parameters
User$userThe current user.
Returns
string[] Which language codes the user specified.

Implemented in Wikibase\Repo\BabelUserLanguageLookup.


The documentation for this interface was generated from the following file: