Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\EntityIdHtmlLinkFormatterFactory Class Reference

A factory for generating EntityIdFormatter returning HTML. More...

+ Inheritance diagram for Wikibase\Repo\EntityIdHtmlLinkFormatterFactory:
+ Collaboration diagram for Wikibase\Repo\EntityIdHtmlLinkFormatterFactory:

Public Member Functions

 __construct (EntityTitleLookup $titleLookup, array $formatterCallbacks=[])
 
 getOutputFormat ()
 
 getEntityIdFormatter (Language $language)
 

Private Member Functions

 buildFormatters (Language $language)
 

Private Attributes

 $titleLookup
 
 $formatterCallbacks
 

Detailed Description

A factory for generating EntityIdFormatter returning HTML.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\EntityIdHtmlLinkFormatterFactory::__construct ( EntityTitleLookup  $titleLookup,
array  $formatterCallbacks = [] 
)

Member Function Documentation

◆ buildFormatters()

Wikibase\Repo\EntityIdHtmlLinkFormatterFactory::buildFormatters ( Language  $language)
private
Parameters
Language$language
Returns
EntityIdFormatter[]

◆ getEntityIdFormatter()

Wikibase\Repo\EntityIdHtmlLinkFormatterFactory::getEntityIdFormatter ( Language  $language)
See also
EntityIdFormatterFactory::getEntityIdFormatter
Parameters
Language$language
Returns
EntityIdFormatter

Implements Wikibase\View\EntityIdFormatterFactory.

◆ getOutputFormat()

Wikibase\Repo\EntityIdHtmlLinkFormatterFactory::getOutputFormat ( )

Member Data Documentation

◆ $formatterCallbacks

Wikibase\Repo\EntityIdHtmlLinkFormatterFactory::$formatterCallbacks
private

◆ $titleLookup

Wikibase\Repo\EntityIdHtmlLinkFormatterFactory::$titleLookup
private

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