Documentation

CallbackGenerator
in package
implements MentionGeneratorInterface

Interfaces, Classes and Traits

MentionGeneratorInterface

Table of Contents

$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
__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 $callback

Methods

__construct()

public __construct(callable $callback) : mixed
Parameters
$callback : callable
Return values
mixed

Search results