|
| getConfig () |
| Return information about this extension module.FIXME: Add more expected fields or create a class for this FIXME: The 'name' is expected to be the same as the name defined at the top level of extension.json. - Returns
- array{name:string}
|
|
| __construct (?ParsoidExtensionAPI $extApi=null) |
|
| sourceToDom (ParsoidExtensionAPI $extApi, string $content, array $extArgs) |
| Convert an extension tag's content to DOM.- Parameters
-
ParsoidExtensionAPI | $extApi | |
string | $src | Extension tag content |
array | $extArgs | Extension tag arguments The extension tag arguments should be treated as opaque objects and any necessary inspection should be handled through the API. |
- Returns
- DocumentFragment|false|null
DocumentFragment if returning some parsed content false to fallback to the default handler for the content null to drop the instance completely
|
|
Public Member Functions inherited from Wikimedia\Parsoid\Ext\ExtensionTagHandler |
| lintHandler (ParsoidExtensionAPI $extApi, Element $rootNode, callable $defaultHandler) |
| Lint handler for this extension.
|
|
| domToWikitext (ParsoidExtensionAPI $extApi, Element $node, bool $wrapperUnmodified) |
| Serialize a DOM node created by this extension to wikitext.
|
|
| modifyArgDict (ParsoidExtensionAPI $extApi, object $argDict) |
| Some extensions require the ability to modify the argument dictionary.
|
|
| diffHandler (ParsoidExtensionAPI $extApi, callable $domDiff, Element $origNode, Element $editedNode) |
| XXX: Experimental.
|
|
◆ __construct()
- Parameters
-
?ParsoidExtensionAPI | $extApi | |
◆ getConfig()
Wikimedia\Parsoid\Ext\Poem\Poem::getConfig |
( |
| ) |
|
Return information about this extension module.FIXME: Add more expected fields or create a class for this FIXME: The 'name' is expected to be the same as the name defined at the top level of extension.json.
- Returns
- array{name:string}
Implements Wikimedia\Parsoid\Ext\ExtensionModule.
◆ sourceToDom()
Wikimedia\Parsoid\Ext\Poem\Poem::sourceToDom |
( |
ParsoidExtensionAPI | $extApi, |
|
|
string | $content, |
|
|
array | $extArgs ) |
Convert an extension tag's content to DOM.
- Parameters
-
ParsoidExtensionAPI | $extApi | |
string | $src | Extension tag content |
array | $extArgs | Extension tag arguments The extension tag arguments should be treated as opaque objects and any necessary inspection should be handled through the API. |
- Returns
- DocumentFragment|false|null
DocumentFragment
if returning some parsed content false
to fallback to the default handler for the content null
to drop the instance completely
Reimplemented from Wikimedia\Parsoid\Ext\ExtensionTagHandler.
The documentation for this class was generated from the following file: