Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\Helpers\UserPreferredContentLanguagesLookup Class Reference

Public Member Functions

 __construct (ContentLanguages $contentLanguages, UserLanguageLookup $userLanguageLookup, $wikiDefaultContentLanguage)
 
 getLanguages ( $uiLanguage, User $user)
 

Private Attributes

 $contentLanguages
 
 $userLanguageLookup
 
 $wikiDefaultContentLanguage
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\Helpers\UserPreferredContentLanguagesLookup::__construct ( ContentLanguages $contentLanguages,
UserLanguageLookup $userLanguageLookup,
$wikiDefaultContentLanguage )

Member Function Documentation

◆ getLanguages()

Wikibase\Repo\Hooks\Helpers\UserPreferredContentLanguagesLookup::getLanguages ( $uiLanguage,
User $user )
Parameters
string$uiLanguageUser interface language; will be returned as the first language in the list if valid
User$user
Returns
array language codes

Member Data Documentation

◆ $contentLanguages

Wikibase\Repo\Hooks\Helpers\UserPreferredContentLanguagesLookup::$contentLanguages
private

◆ $userLanguageLookup

Wikibase\Repo\Hooks\Helpers\UserPreferredContentLanguagesLookup::$userLanguageLookup
private

◆ $wikiDefaultContentLanguage

Wikibase\Repo\Hooks\Helpers\UserPreferredContentLanguagesLookup::$wikiDefaultContentLanguage
private

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