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

An EntityIdHtmlLinkFormatter for entity types without a configured entity-id-html-link-formatter-callback. More...

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

Public Member Functions

 __construct (EntityTitleLookup $entityTitleLookup, EntityIdFormatter $nonExistingFormatter)
 
 formatEntityId (EntityId $entityId)
 

Private Member Functions

 getAttributes (Title $title)
 

Private Attributes

 $entityTitleLookup
 
 $nonExistingFormatter
 

Detailed Description

An EntityIdHtmlLinkFormatter for entity types without a configured entity-id-html-link-formatter-callback.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\UnknownTypeEntityIdHtmlLinkFormatter::__construct ( EntityTitleLookup  $entityTitleLookup,
EntityIdFormatter  $nonExistingFormatter 
)

Member Function Documentation

◆ formatEntityId()

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

Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.

◆ getAttributes()

Wikibase\Lib\Formatters\UnknownTypeEntityIdHtmlLinkFormatter::getAttributes ( Title  $title)
private
Parameters
Title$title
Returns
string[]

Member Data Documentation

◆ $entityTitleLookup

Wikibase\Lib\Formatters\UnknownTypeEntityIdHtmlLinkFormatter::$entityTitleLookup
private

◆ $nonExistingFormatter

Wikibase\Lib\Formatters\UnknownTypeEntityIdHtmlLinkFormatter::$nonExistingFormatter
private

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