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

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

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

Public Member Functions

 __construct (LabelDescriptionLookup $labelDescriptionLookup, LanguageNameLookup $languageNameLookup, EntityExistenceChecker $entityExistenceChecker, EntityTitleTextLookup $entityTitleTextLookup, EntityUrlLookup $entityUrlLookup, EntityRedirectChecker $entityRedirectChecker)
 
 formatEntityId (EntityId $entityId)
 
- Public Member Functions inherited from Wikibase\DataModel\Services\EntityId\EntityIdLabelFormatter
 __construct (LabelLookup $labelLookup)
 

Protected Attributes

 $entityExistenceChecker
 
 $entityTitleTextLookup
 
 $entityUrlLookup
 
 $entityRedirectChecker
 

Private Member Functions

 getAttributes (EntityId $entityId, Term $term=null)
 

Private Attributes

 $languageFallbackIndicator
 
 $nonExistingEntityIdHtmlFormatter
 

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.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::__construct ( LabelDescriptionLookup  $labelDescriptionLookup,
LanguageNameLookup  $languageNameLookup,
EntityExistenceChecker  $entityExistenceChecker,
EntityTitleTextLookup  $entityTitleTextLookup,
EntityUrlLookup  $entityUrlLookup,
EntityRedirectChecker  $entityRedirectChecker 
)

Member Function Documentation

◆ formatEntityId()

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

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

◆ getAttributes()

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::getAttributes ( EntityId  $entityId,
Term  $term = null 
)
private
Parameters
EntityId$entityId
Term | null$term
Returns
string[]

Member Data Documentation

◆ $entityExistenceChecker

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::$entityExistenceChecker
protected

◆ $entityRedirectChecker

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::$entityRedirectChecker
protected

◆ $entityTitleTextLookup

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::$entityTitleTextLookup
protected

◆ $entityUrlLookup

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::$entityUrlLookup
protected

◆ $languageFallbackIndicator

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

◆ $nonExistingEntityIdHtmlFormatter

Wikibase\Lib\Formatters\LabelsProviderEntityIdHtmlLinkFormatter::$nonExistingEntityIdHtmlFormatter
private

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