Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup Interface Reference

A LabelDescriptionLookup that is guaranteed to return TermFallbacks, not merely Terms. More...

+ Inheritance diagram for Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup:
+ Collaboration diagram for Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup:

Public Member Functions

 getLabel (EntityId $entityId)
 
 getDescription (EntityId $entityId)
 

Detailed Description

A LabelDescriptionLookup that is guaranteed to return TermFallbacks, not merely Terms.

Since
4.0.0

Member Function Documentation

◆ getDescription()

Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup::getDescription ( EntityId $entityId)
Parameters
EntityId$entityId
Exceptions
LabelDescriptionLookupException
Returns
TermFallback|null

Implements Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup.

◆ getLabel()

Wikibase\DataModel\Services\Lookup\FallbackLabelDescriptionLookup::getLabel ( EntityId $entityId)
Parameters
EntityId$entityId
Exceptions
LabelDescriptionLookupException
Returns
TermFallback|null

Implements Wikibase\DataModel\Services\Lookup\LabelLookup.


The documentation for this interface was generated from the following file: