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

Formats entity IDs by generating an HTML link to the corresponding page title. More...

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

Public Member Functions

 __construct (LabelDescriptionLookup $labelDescriptionLookup, EntityTitleLookup $entityTitleLookup, LanguageNameLookup $languageNameLookup, NonExistingEntityIdHtmlFormatter $nonExistingEntityIdHtmlFormatter)
 
 formatEntityId (EntityId $entityId)
 
- Public Member Functions inherited from Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter
 __construct (LabelLookup $labelLookup)
 

Protected Attributes

 $entityTitleLookup
 

Private Member Functions

 getAttributes (Title $title, Term $term=null)
 

Private Attributes

 $languageFallbackIndicator
 
 $nonExistingFormatter
 

Additional Inherited Members

- Protected Member Functions inherited from Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter
 lookupEntityLabel (EntityId $entityId)
 

Detailed Description

Formats entity IDs by generating an HTML link to the corresponding page title.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\ItemPropertyIdHtmlLinkFormatter::__construct ( LabelDescriptionLookup $labelDescriptionLookup,
EntityTitleLookup $entityTitleLookup,
LanguageNameLookup $languageNameLookup,
NonExistingEntityIdHtmlFormatter $nonExistingEntityIdHtmlFormatter )

Member Function Documentation

◆ formatEntityId()

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

Reimplemented from Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter.

◆ getAttributes()

Wikibase\Lib\Formatters\ItemPropertyIdHtmlLinkFormatter::getAttributes ( Title $title,
Term $term = null )
private
Parameters
Title$title
Term | null$term
Returns
string[]

Member Data Documentation

◆ $entityTitleLookup

Wikibase\Lib\Formatters\ItemPropertyIdHtmlLinkFormatter::$entityTitleLookup
protected

◆ $languageFallbackIndicator

Wikibase\Lib\Formatters\ItemPropertyIdHtmlLinkFormatter::$languageFallbackIndicator
private

◆ $nonExistingFormatter

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

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