Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\NodeData\DataMwError Class Reference

Localizable errors, stored in data-mw. More...

+ Inheritance diagram for Wikimedia\Parsoid\NodeData\DataMwError:
+ Collaboration diagram for Wikimedia\Parsoid\NodeData\DataMwError:

Public Member Functions

 __construct (string $key, array $params=[], ?string $message=null)
 
 __clone ()
 
 toJsonArray ()
 

Static Public Member Functions

static newFromJsonArray (array $json)
 

Public Attributes

string $key
 The error name, as a localizable key.
 
string $message
 An unlocalized version of the error name, as a fallback.
 
array $params
 Optional parameters for the error message.
 

Detailed Description

Localizable errors, stored in data-mw.

Member Data Documentation

◆ $params

array Wikimedia\Parsoid\NodeData\DataMwError::$params

Optional parameters for the error message.

These should all be codecable.


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