class League / CommonMark / Extension / Mention / Generator / CallbackGenerator
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
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