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

A simple wrapper that forwards formatting of an EntityIdValue object to an EntityIdFormatter. More...

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

Public Member Functions

 __construct (EntityIdFormatter $entityIdFormatter)
 
 format ( $value)
 

Private Attributes

 $entityIdFormatter
 

Detailed Description

A simple wrapper that forwards formatting of an EntityIdValue object to an EntityIdFormatter.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\EntityIdValueFormatter::__construct ( EntityIdFormatter $entityIdFormatter)

Member Function Documentation

◆ format()

Wikibase\Lib\Formatters\EntityIdValueFormatter::format ( $value)
See also
ValueFormatter::format

Format an EntityIdValue

Parameters
EntityIdValue$value
Exceptions
InvalidArgumentException
Returns
string Either plain text, wikitext or HTML, depending on the EntityIdFormatter provided.

Member Data Documentation

◆ $entityIdFormatter

Wikibase\Lib\Formatters\EntityIdValueFormatter::$entityIdFormatter
private

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