Wikibase
MediaWiki Wikibase extension
|
A LabelDescriptionLookup that is guaranteed to return TermFallbacks, not merely Terms. More...
Public Member Functions | |
getLabel (EntityId $entityId) | |
getDescription (EntityId $entityId) | |
A LabelDescriptionLookup that is guaranteed to return TermFallbacks, not merely Terms.
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\Lib\Store\LanguageFallbackLabelDescriptionLookup, Wikibase\Lib\Store\DispatchingFallbackLabelDescriptionLookup, Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup, and Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup.
Wikibase\Lib\Store\FallbackLabelDescriptionLookup::getLabel | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\DataModel\Services\Lookup\LabelLookup.
Implemented in Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup, Wikibase\Lib\Store\DispatchingFallbackLabelDescriptionLookup, Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup, and Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup.