Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\MediaWikiLanguageDirectionalityLookup Class Reference

Service for looking up language directionalities based on MediaWiki's Language class. More...

+ Inheritance diagram for Wikibase\Repo\MediaWikiLanguageDirectionalityLookup:
+ Collaboration diagram for Wikibase\Repo\MediaWikiLanguageDirectionalityLookup:

Public Member Functions

 __construct (LanguageFactory $languageFactory, LanguageNameUtils $languageNameUtils)
 
 getDirectionality ( $languageCode)
 

Private Attributes

LanguageFactory $languageFactory
 
LanguageNameUtils $languageNameUtils
 

Detailed Description

Service for looking up language directionalities based on MediaWiki's Language class.

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\MediaWikiLanguageDirectionalityLookup::__construct ( LanguageFactory $languageFactory,
LanguageNameUtils $languageNameUtils )

Member Function Documentation

◆ getDirectionality()

Wikibase\Repo\MediaWikiLanguageDirectionalityLookup::getDirectionality ( $languageCode)
See also
LanguageDirectionalityLookup::getDirectionality
Parameters
string$languageCode
Returns
string|null 'ltr', 'rtl' or null if unknown

Implements Wikibase\View\LanguageDirectionalityLookup.

Member Data Documentation

◆ $languageFactory

LanguageFactory Wikibase\Repo\MediaWikiLanguageDirectionalityLookup::$languageFactory
private

◆ $languageNameUtils

LanguageNameUtils Wikibase\Repo\MediaWikiLanguageDirectionalityLookup::$languageNameUtils
private

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