Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Formatters\EntityIdPlainLinkFormatter Class Reference

Formats entity IDs by generating a wiki link to the corresponding page title without display text. More...

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

Public Member Functions

 formatEntityId (EntityId $entityId)
 
- Public Member Functions inherited from Wikibase\Lib\Formatters\EntityIdTitleFormatter
 __construct (EntityTitleLookup $titleLookup)
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Lib\Formatters\EntityIdTitleFormatter
 $titleLookup
 

Detailed Description

Formats entity IDs by generating a wiki link to the corresponding page title without display text.

This link can contain a namespace like [[Property:P42]]. HtmlPageLinkRendererEndHookHandler requires this exact format.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Member Function Documentation

◆ formatEntityId()

Wikibase\Lib\Formatters\EntityIdPlainLinkFormatter::formatEntityId ( EntityId  $entityId)
See also
EntityIdFormatter::formatEntityId
Parameters
EntityId$entityId
Returns
string Wikitext

Reimplemented from Wikibase\Lib\Formatters\EntityIdTitleFormatter.


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