Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\LanguageFallbackIndicator Class Reference

Generates HTML (usually a 'sup' element) to make the actual and source languages of terms (typically labels and descriptions) that are the result of a language fallback chain and/or transliteration visible to the user. More...

Public Member Functions

 __construct (LanguageNameLookup $languageNameLookup)
 
 getHtml (TermFallback $term)
 

Private Member Functions

 getBaseLanguage ( $languageCode)
 

Private Attributes

 $languageNameLookup
 

Detailed Description

Generates HTML (usually a 'sup' element) to make the actual and source languages of terms (typically labels and descriptions) that are the result of a language fallback chain and/or transliteration visible to the user.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\LanguageFallbackIndicator::__construct ( LanguageNameLookup  $languageNameLookup)

Member Function Documentation

◆ getBaseLanguage()

Wikibase\Lib\LanguageFallbackIndicator::getBaseLanguage (   $languageCode)
private
Parameters
string$languageCode
Returns
string

◆ getHtml()

Wikibase\Lib\LanguageFallbackIndicator::getHtml ( TermFallback  $term)

Member Data Documentation

◆ $languageNameLookup

Wikibase\Lib\LanguageFallbackIndicator::$languageNameLookup
private

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