Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\ParsoidUtils Class Reference

@license MIT More...

Static Public Member Functions

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)
 

Detailed Description

@license MIT

Member Function Documentation

◆ 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.

◆ 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.


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