Wikibase
MediaWiki Wikibase extension
|
A LabelDescriptionLookup
that is guaranteed to return TermFallback
s, not merely Term
s.
More...
Public Member Functions | |
getLabel (EntityId $entityId) | |
getDescription (EntityId $entityId) | |
A LabelDescriptionLookup
that is guaranteed to return TermFallback
s, not merely Term
s.
Whether redirects are resolved is currently implementation-dependent. Use FallbackLabelDescriptionLookupFactory
to create a lookup that applies language fallbacks and resolves redirects.
Wikibase\Lib\Store\FallbackLabelDescriptionLookup::getDescription | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup.
Implemented in Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup, Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup, Wikibase\Lib\Store\DispatchingFallbackLabelDescriptionLookup, and Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup.
Wikibase\Lib\Store\FallbackLabelDescriptionLookup::getLabel | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\DataModel\Services\Lookup\LabelLookup.
Implemented in Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup, Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup, Wikibase\Lib\Store\DispatchingFallbackLabelDescriptionLookup, and Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup.