interface
League
/
CommonMark
/
Environment
/
EnvironmentBuilderInterface
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
EnvironmentBuilderInterface
Methods
public
addExtension ( ExtensionInterface $extension ) : void
Registers the given extension with the Environment
public
addBlockStartParser ( BlockStartParserInterface $parser , int $priority ) : $this
Registers the given block start parser with the Environment
Parameters
-
$parser
BlockStartParserInterface
Block parser instance
-
$priority
int
Priority (a higher number will be executed earlier)
public
addInlineParser ( InlineParserInterface $parser , int $priority ) : $this
Registers the given inline parser with the Environment
Parameters
-
$parser
InlineParserInterface
Inline parser instance
-
$priority
int
Priority (a higher number will be executed earlier)
public
addDelimiterProcessor ( DelimiterProcessorInterface $processor ) : void
Registers the given delimiter processor with the Environment
Parameters
-
$processor
DelimiterProcessorInterface
Delimiter processors instance
public
addRenderer ( string $nodeClass , NodeRendererInterface $renderer , int $priority ) : $this
Registers the given node renderer with the Environment
Parameters
-
$nodeClass
string
The fully-qualified node element class name the renderer below should handle
-
$renderer
NodeRendererInterface
The renderer responsible for rendering the type of element given above
-
$priority
int
Priority (a higher number will be executed earlier)
public
addEventListener ( string $eventClass , callable $listener , int $priority ) : $this
Registers the given event listener
Parameters
-
$eventClass
class-string
Fully-qualified class name of the event this listener should respond to
-
$listener
callable
Listener to be executed
-
$priority
int
Priority (a higher number will be executed earlier)