Wikibase
MediaWiki Wikibase extension
|
Looks up the label of an entity. More...
Public Member Functions | |
getLabel (EntityId $entityId) | |
Looks up the label of an entity.
The language used is typically determined when the service is constructed, such as the content or interface language. Whether language fallbacks are applied or not depends on the implementation. (To look up labels in specific languages, without fallbacks, use TermLookup
.)
Wikibase\DataModel\Services\Lookup\LabelLookup::getLabel | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implemented in Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup, Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup, Wikibase\Lib\Store\DispatchingFallbackLabelDescriptionLookup, Wikibase\Lib\Store\FallbackLabelDescriptionLookup, Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup, Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup, and Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup.