class League / CommonMark / Extension / Mention / Generator / CallbackGenerator
final

CallbackGenerator

Implements

Properties

private

$callback callable

A callback function which sets the URL on the passed mention and returns the mention, return a new AbstractInline based object or null if the mention is not a match

?AbstractInline

Default: null

Methods

public

__construct ( callable $callback ) : void

public

generateMention ( Mention $mention ) : void