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

Formats entity IDs by generating HTML for when the entity ID does not exist. More...

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

Public Member Functions

 __construct (string $deletedEntityMessagePrefix)
 
 formatEntityId (EntityId $entityId)
 

Protected Member Functions

 getUndefinedInfoMessage (EntityId $entityId)
 

Private Attributes

 $deletedEntityMessagePrefix
 

Detailed Description

Formats entity IDs by generating HTML for when the entity ID does not exist.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatter::__construct ( string $deletedEntityMessagePrefix)
Parameters
string$deletedEntityMessagePrefixE.g. 'wikibase-deletedentity-'

Member Function Documentation

◆ formatEntityId()

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

Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.

Reimplemented in Wikibase\Lib\Formatters\NonExistingEntityIdHtmlBrokenLinkFormatter.

◆ getUndefinedInfoMessage()

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatter::getUndefinedInfoMessage ( EntityId $entityId)
protected
Parameters
EntityId$entityId
Returns
string

Member Data Documentation

◆ $deletedEntityMessagePrefix

Wikibase\Lib\Formatters\NonExistingEntityIdHtmlFormatter::$deletedEntityMessagePrefix
private

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