- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\ValidatorErrorLocalizer::__construct |
( |
ValueFormatter |
$paramFormatter = null | ) |
|
- Parameters
-
ValueFormatter | null | $paramFormatter | Optional formatter for formatting message parameters. MUST return wikitext. This is typically some kind of dispatcher. If not provided, naive formatting will be used, which will fail on non-primitive parameters. |
◆ getErrorMessage()
Wikibase\Repo\Validators\ValidatorErrorLocalizer::getErrorMessage |
( |
Error |
$error | ) |
|
Returns a Message representing the given error.
This can be used for reporting validation failures.
- Parameters
-
- Returns
- Message
◆ getResultStatus()
Wikibase\Repo\Validators\ValidatorErrorLocalizer::getResultStatus |
( |
Result |
$result | ) |
|
Returns a Status representing the given validation result.
- Parameters
-
- Returns
- Status
◆ paramToString()
Wikibase\Repo\Validators\ValidatorErrorLocalizer::paramToString |
( |
|
$param | ) |
|
|
private |
- Parameters
-
- Returns
- string wikitext
◆ $paramFormatter
Wikibase\Repo\Validators\ValidatorErrorLocalizer::$paramFormatter |
|
private |
The documentation for this class was generated from the following file: