Wikibase
MediaWiki Wikibase extension
|
A factory interface for generating EntityIdFormatters. More...
Public Member Functions | |
getOutputFormat () | |
Returns the formatter's output format, as defined by the SnakFormatter::FORMAT_XXX constants. More... | |
getEntityIdFormatter (Language $language) | |
A factory interface for generating EntityIdFormatters.
Wikibase\View\EntityIdFormatterFactory::getEntityIdFormatter | ( | Language | $language | ) |
Language | $language |
Implemented in Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory, Wikibase\Repo\EntityIdLabelFormatterFactory, and Wikibase\Repo\EntityIdHtmlLinkFormatterFactory.
Wikibase\View\EntityIdFormatterFactory::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.
Implemented in Wikibase\Repo\FederatedProperties\WrappingEntityIdFormatterFactory, Wikibase\Repo\EntityIdLabelFormatterFactory, and Wikibase\Repo\EntityIdHtmlLinkFormatterFactory.