@license MIT
More...
|
static | createLangFragment (string $msgKey, array $params, ParsoidExtensionAPI $extApi, ?string $language) |
| Creates an internationalized Parsoid fragment.
|
|
static | createLangAttribute (Element $element, string $name, string $msgKey, array $params, ParsoidExtensionAPI $extApi, ?string $language) |
| Creates an internationalized Parsoid attribute on the provided element.
|
|
static | addAttributesToNode (array $attrs, Element $node) |
|
static | addCategory (ParsoidExtensionAPI $extApi, string $category) |
| Add category to the page, from its key.
|
|
◆ addCategory()
static Kartographer\ParsoidUtils::addCategory |
( |
ParsoidExtensionAPI | $extApi, |
|
|
string | $category ) |
|
static |
Add category to the page, from its key.
- Parameters
-
ParsoidExtensionAPI | $extApi | |
string | $category | |
- Returns
- void
◆ createLangAttribute()
static Kartographer\ParsoidUtils::createLangAttribute |
( |
Element | $element, |
|
|
string | $name, |
|
|
string | $msgKey, |
|
|
array | $params, |
|
|
ParsoidExtensionAPI | $extApi, |
|
|
?string | $language ) |
|
static |
Creates an internationalized Parsoid attribute on the provided element.
If $language is not provided, the created attribute is generated in the page language.
- Parameters
-
Element | $element | |
string | $name | |
string | $msgKey | |
array | $params | |
ParsoidExtensionAPI | $extApi | |
string | null | $language | |
- Returns
- void
◆ createLangFragment()
static Kartographer\ParsoidUtils::createLangFragment |
( |
string | $msgKey, |
|
|
array | $params, |
|
|
ParsoidExtensionAPI | $extApi, |
|
|
?string | $language ) |
|
static |
Creates an internationalized Parsoid fragment.
If $language is not provided, the returned fragment is generated in the page language.
- Parameters
-
string | $msgKey | |
array | $params | |
ParsoidExtensionAPI | $extApi | |
string | null | $language | |
- Returns
- DocumentFragment
The documentation for this class was generated from the following file:
- includes/ParsoidUtils.php