class League / CommonMark / Extension / Mention / MentionParser
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
final

MentionParser

Implements

Properties

private

$name

Default: null
private

$prefix

Default: null
private

$identifierPattern

Default: null
private

$mentionGenerator

Default: null

Methods

public

__construct ( string $name , string $prefix , string $identifierPattern , MentionGeneratorInterface $mentionGenerator ) : void

public

getMatchDefinition ( ) : void

public

parse ( InlineParserContext $inlineContext ) : void

public static

createWithStringTemplate ( string $name , string $prefix , string $mentionRegex , string $urlTemplate ) : void

public static

createWithCallback ( string $name , string $prefix , string $mentionRegex , callable $callback ) : void