EscapingEntityIdFormatter wraps another EntityIdFormatter and applies a transformation (escaping) to that formatter's output.
More...
EscapingEntityIdFormatter wraps another EntityIdFormatter and applies a transformation (escaping) to that formatter's output.
- Since
- 1.1
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter::__construct |
( |
EntityIdFormatter |
$formatter, |
|
|
|
$escapeCallback |
|
) |
| |
- Parameters
-
EntityIdFormatter | $formatter | A formatter returning plain text. |
callable | $escapeCallback | A callable taking plain text and returning escaped text. |
- Exceptions
-
◆ formatEntityId()
Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter::formatEntityId |
( |
EntityId |
$value | ) |
|
◆ $escapeCallback
Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter::$escapeCallback |
|
private |
◆ $formatter
Wikibase\DataModel\Services\EntityId\EscapingEntityIdFormatter::$formatter |
|
private |
The documentation for this class was generated from the following file: