Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\TT\AttributeTransformManager Class Reference

Utility transformation manager for expanding attributes whose keys and/or values are not plain strings. More...

Public Member Functions

 __construct (Frame $frame, array $options)
 
 process (array $attributes)
 Expand both key and values of all key/value pairs.
 

Detailed Description

Utility transformation manager for expanding attributes whose keys and/or values are not plain strings.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\Wt2Html\TT\AttributeTransformManager::__construct ( Frame $frame,
array $options )
Parameters
Frame$frame
array$options
  • bool inTemplate (reqd) Is this being invoked while processing a template?
  • bool expandTemplates (reqd) Should we expand templates encountered here?

Member Function Documentation

◆ process()

Wikimedia\Parsoid\Wt2Html\TT\AttributeTransformManager::process ( array $attributes)

Expand both key and values of all key/value pairs.

Used for generic (non-template) tokens in the AttributeExpander handler, which runs after templates are already expanded.

Parameters
KV[]$attributes
Returns
KV[] expanded attributes

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