Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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 ( )
See also
EntityIdFormatterFactory::getOutputFormat
Returns
string SnakFormatter::FORMAT_HTML

Implements Wikibase\View\EntityIdFormatterFactory.

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: