A lookup for labels and descriptions in a given language.
More...
A lookup for labels and descriptions in a given language.
Applies language fallbacks; does not resolve redirects. Use FallbackLabelDescriptionLookupFactory
instead of using this class directly.
- Copyright
- GPL-2.0-or-later
- Author
- Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
◆ __construct()
- Parameters
-
TermLookup | $termLookup | |
TermLanguageFallbackChain | $termLanguageFallbackChain | |
◆ getDescription()
Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup::getDescription |
( |
EntityId | $entityId | ) |
|
◆ getLabel()
Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup::getLabel |
( |
EntityId | $entityId | ) |
|
◆ getTermFallback()
Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup::getTermFallback |
( |
array | $terms, |
|
|
array | $fetchLanguages ) |
|
private |
- Parameters
-
string[] | $terms | |
string[] | $fetchLanguages | |
- Returns
- TermFallback|null
◆ $termLanguageFallbackChain
Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup::$termLanguageFallbackChain |
|
private |
◆ $termLookup
Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup::$termLookup |
|
private |
The documentation for this class was generated from the following file: