|
Wikibase
MediaWiki Wikibase extension
|
EscapingEntityIdFormatter wraps another EntityIdFormatter and applies a transformation (escaping) to that formatter's output. More...
Inheritance diagram for Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter:
Collaboration diagram for Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter:Public Member Functions | |
| __construct (EntityIdFormatter $formatter, $escapeCallback) | |
| formatEntityId (EntityId $value) | |
Private Attributes | |
| $formatter | |
| $escapeCallback | |
EscapingEntityIdFormatter wraps another EntityIdFormatter and applies a transformation (escaping) to that formatter's output.
| Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter::__construct | ( | EntityIdFormatter | $formatter, |
| $escapeCallback ) |
| EntityIdFormatter | $formatter | A formatter returning plain text. |
| callable | $escapeCallback | A callable taking plain text and returning escaped text. |
| InvalidArgumentException |
| Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter::formatEntityId | ( | EntityId | $value | ) |
| EntityId | $value |
Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.
|
private |
|
private |