Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker Class Reference
+ Inheritance diagram for Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker:
+ Collaboration diagram for Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker:

Public Member Functions

 __construct (EntityTitleTextLookup $entityTitleTextLookup, EntityUrlLookup $entityUrlLookup)
 
 formatEntityId (EntityId $entityId)
 

Private Attributes

 $entityIdHtmlFormatter
 
 $entityTitleTextLookup
 
 $entityUrlLookup
 
 $entityIdHtmlBrokenLinkFormatter
 

Detailed Description

Format and link non existing entityIds

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker::__construct ( EntityTitleTextLookup  $entityTitleTextLookup,
EntityUrlLookup  $entityUrlLookup 
)

Member Function Documentation

◆ formatEntityId()

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker::formatEntityId ( EntityId  $value)
Parameters
EntityId$value
Returns
string Either plain text, wikitext or HTML.
Exceptions

Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.

Member Data Documentation

◆ $entityIdHtmlBrokenLinkFormatter

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker::$entityIdHtmlBrokenLinkFormatter
private

◆ $entityIdHtmlFormatter

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker::$entityIdHtmlFormatter
private

◆ $entityTitleTextLookup

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker::$entityTitleTextLookup
private

◆ $entityUrlLookup

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatterLinker::$entityUrlLookup
private

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