Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Ext\ExtensionTag Class Reference

Wrapper so that the internal token isn't exposed. More...

Public Member Functions

 __construct (Token $extToken)
 
 getName ()
 Return the name of the extension tag.
 
 getOffsets ()
 Return the source offsets for this extension tag usage.
 
 getSource ()
 Return the full extension source.
 
 isSelfClosed ()
 Is this extension tag self-closed?
 

Detailed Description

Wrapper so that the internal token isn't exposed.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\Ext\ExtensionTag::__construct ( Token $extToken)
Parameters
Token$extToken

Member Function Documentation

◆ getName()

Wikimedia\Parsoid\Ext\ExtensionTag::getName ( )

Return the name of the extension tag.

Returns
string

◆ getOffsets()

Wikimedia\Parsoid\Ext\ExtensionTag::getOffsets ( )

Return the source offsets for this extension tag usage.

Returns
DomSourceRange|null

◆ getSource()

Wikimedia\Parsoid\Ext\ExtensionTag::getSource ( )

Return the full extension source.

Returns
string|null

◆ isSelfClosed()

Wikimedia\Parsoid\Ext\ExtensionTag::isSelfClosed ( )

Is this extension tag self-closed?

Returns
bool

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