Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\FederatedProperties\FederatedPropertiesEntityIdFormatter Class Reference

Wrapper for EntityIdFormatter that handles federated property API exceptions. More...

+ Inheritance diagram for Wikibase\Repo\FederatedProperties\FederatedPropertiesEntityIdFormatter:
+ Collaboration diagram for Wikibase\Repo\FederatedProperties\FederatedPropertiesEntityIdFormatter:

Public Member Functions

 __construct (EntityIdFormatter $innerFormatter)
 
 formatEntityId (EntityId $entityId)
 

Private Attributes

 $innerFormatter
 

Detailed Description

Wrapper for EntityIdFormatter that handles federated property API exceptions.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntityIdFormatter::__construct ( EntityIdFormatter $innerFormatter)

Member Function Documentation

◆ formatEntityId()

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntityIdFormatter::formatEntityId ( EntityId $value)
Parameters
EntityId$value
Returns
string Either plain text, wikitext or HTML.
Exceptions

InvalidArgumentException when value falls out of supported patterns by the formatter

Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.

Member Data Documentation

◆ $innerFormatter

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntityIdFormatter::$innerFormatter
private

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