Documentation

MentionParser
in package
implements InlineParserInterface

FinalYes

Table of Contents

Interfaces

InlineParserInterface

Properties

$identifierPattern  : string
$mentionGenerator  : MentionGeneratorInterface
$name  : string
$prefix  : string

Methods

__construct()  : mixed
createWithCallback()  : MentionParser
createWithStringTemplate()  : MentionParser
getMatchDefinition()  : InlineParserMatch
parse()  : bool

Properties

$identifierPattern

private string $identifierPattern
Tags
psalm-readonly

Methods

createWithCallback()

public static createWithCallback(string $name, string $prefix, string $mentionRegex, callable $callback) : MentionParser
Parameters
$name : string
$prefix : string
$mentionRegex : string
$callback : callable
Return values
MentionParser

createWithStringTemplate()

public static createWithStringTemplate(string $name, string $prefix, string $mentionRegex, string $urlTemplate) : MentionParser
Parameters
$name : string
$prefix : string
$mentionRegex : string
$urlTemplate : string
Return values
MentionParser

        
On this page

Search results