Wikibase
MediaWiki Wikibase extension
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
$uiLanguage- user 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: