Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory Class Reference
+ Inheritance diagram for Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory:
+ Collaboration diagram for Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory:

Public Member Functions

 __construct (EntityIdFormatterFactory $inner)
 
 getOutputFormat ()
 Returns the formatter's output format, as defined by the SnakFormatter::FORMAT_XXX constants. More...
 
 getEntityIdFormatter (Language $language)
 

Private Attributes

 $inner
 

Detailed Description

Author
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory::__construct ( EntityIdFormatterFactory  $inner)

Member Function Documentation

◆ getEntityIdFormatter()

Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory::getEntityIdFormatter ( Language  $language)
Parameters
Language$language
Returns
EntityIdFormatter

Implements Wikibase\View\EntityIdFormatterFactory.

◆ getOutputFormat()

Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory::getOutputFormat ( )

Returns the formatter's output format, as defined by the SnakFormatter::FORMAT_XXX constants.

This allows callers to assert that the formatter returned by getEntityIdFormatter() will generate text in the desired format, applying the appropriate escaping.

See also
SnakFormatter::FORMAT_WIKITEXT
SnakFormatter::FORMAT_HTML
Returns
string

Implements Wikibase\View\EntityIdFormatterFactory.

Member Data Documentation

◆ $inner

Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory::$inner
private

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