Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\PP\Processors\I18n Class Reference

This pass adds placeholders for i18n messages. More...

+ Inheritance diagram for Wikimedia\Parsoid\Wt2Html\PP\Processors\I18n:
+ Collaboration diagram for Wikimedia\Parsoid\Wt2Html\PP\Processors\I18n:

Public Member Functions

 run (Env $env, Node $root, array $options=[], bool $atTopLevel=false)
 
Parameters
Env$env
Element | DocumentFragment$rootThe root of the tree to process
array$options
bool$atTopLevelIs this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions)

 

Detailed Description

This pass adds placeholders for i18n messages.

It will eventually be replaced by a HTML2HTML pass in core.

Member Function Documentation

◆ run()

Wikimedia\Parsoid\Wt2Html\PP\Processors\I18n::run ( Env $env,
Node $root,
array $options = [],
bool $atTopLevel = false )

Parameters
Env$env
Element | DocumentFragment$rootThe root of the tree to process
array$options
bool$atTopLevelIs this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions)

Implements Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor.


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