class Notification implements ExtenderInterface

Methods

type(string $blueprint, string $serializer, array $driversEnabledByDefault = [])

No description

driver(string $driverName, string $driver, array $typesEnabledByDefault = [])

No description

beforeSending(callable|string $callback)

No description

extend(Container $container, Extension $extension = null)

No description

Details

Notification type(string $blueprint, string $serializer, array $driversEnabledByDefault = [])

Parameters

string $blueprint
string $serializer
array $driversEnabledByDefault

Return Value

Notification

Notification driver(string $driverName, string $driver, array $typesEnabledByDefault = [])

Parameters

string $driverName
string $driver
array $typesEnabledByDefault

Return Value

Notification

Notification beforeSending(callable|string $callback)

Parameters

callable|string $callback <p>The callback can be a closure or an invokable class, and should accept:</p> <ul> <li>\Flarum\Notification\Blueprint\BlueprintInterface $blueprint</li> <li>\Flarum\User\User[] $newRecipients</li> </ul> <p>The callable should return an array of recipients.</p> <ul> <li>\Flarum\User\User[] $newRecipients</li> </ul>

Return Value

Notification

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension