Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\EntityIdTitleFormatter Class Reference

Formats entity IDs by generating the corresponding page title. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\EntityIdTitleFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\EntityIdTitleFormatter:

Public Member Functions

 __construct (EntityTitleLookup $titleLookup)
 
 formatEntityId (EntityId $entityId)
 

Protected Attributes

 $titleLookup
 

Detailed Description

Formats entity IDs by generating the corresponding page title.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\EntityIdTitleFormatter::__construct ( EntityTitleLookup  $titleLookup)

Member Function Documentation

◆ formatEntityId()

Wikibase\Lib\Formatters\EntityIdTitleFormatter::formatEntityId ( EntityId  $entityId)
See also
EntityIdFormatter::formatEntityId
Parameters
EntityId$entityId
Returns
string Plain text

Reimplemented in Wikibase\Lib\Formatters\EntityIdLinkFormatter, and Wikibase\Lib\Formatters\EntityIdPlainLinkFormatter.

Member Data Documentation

◆ $titleLookup

Wikibase\Lib\Formatters\EntityIdTitleFormatter::$titleLookup
protected

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