CallbackGenerator
in package
implements
MentionGeneratorInterface
FinalYes
Table of Contents
Interfaces
Properties
- $callback : callable(Mention): Array
- 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
Methods
- __construct() : mixed
- generateMention() : AbstractInline|null
Properties
$callback
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
private
callable(Mention): Array
$callback
Methods
__construct()
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
generateMention()
public
generateMention(Mention $mention) : AbstractInline|null
Parameters
- $mention : Mention