Wikibase
MediaWiki Wikibase extension
|
EscapingEntityIdFormatter wraps another EntityIdFormatter and applies a transformation (escaping) to that formatter's output. More...
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 |