CallbackGenerator
in package
implements
MentionGeneratorInterface
FinalYes
Table of Contents
Interfaces
Properties
- $callback : Warning: Array to string conversion in C:\xampp\htdocs\vendor\phpdocumentor\phpdocumentor\src\phpDocumentor\Transformer\Writer\Twig\LinkRenderer\CallableAdapter.php on line 78 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
Warning: Array to string conversion in C:\xampp\htdocs\vendor\phpdocumentor\phpdocumentor\src\phpDocumentor\Transformer\Writer\Twig\LinkRenderer\CallableAdapter.php on line 78
callable(Mention): Array
$callback
Methods
__construct()
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
generateMention()
public
generateMention(Mention $mention) : AbstractInline|null
Parameters
- $mention : Mention