Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter Class Reference
+ Inheritance diagram for Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter:
+ Collaboration diagram for Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter:

Public Member Functions

 __construct (LabelLookup $labelLookup)
 
 formatEntityId (EntityId $entityId)
 

Protected Member Functions

 lookupEntityLabel (EntityId $entityId)
 

Private Attributes

 $labelLookup
 

Detailed Description

Since
1.1
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter::__construct ( LabelLookup $labelLookup)

Member Function Documentation

◆ formatEntityId()

Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter::formatEntityId ( EntityId $entityId)
See also
EntityIdFormatter::formatEntityId
Parameters
EntityId$entityId
Returns
string Plain text

Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.

Reimplemented in Wikibase\Lib\Formatters\ItemPropertyIdHtmlLinkFormatter, and Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter.

◆ lookupEntityLabel()

Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter::lookupEntityLabel ( EntityId $entityId)
protected
Parameters
EntityId$entityId
Returns
Term|null Null if no label was found or the entity does not exist

Member Data Documentation

◆ $labelLookup

Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter::$labelLookup
private

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