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\DataModel\Services\Lookup\LanguageLabelDescriptionLookup, Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup, Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookup, Wikibase\Lib\Store\FallbackLabelDescriptionLookup, Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup, and Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup.