SendsNotifications

This is a delegate component and requires ColdBox 7+. It should be added to an INotifiable instance.

component
    name="User"
    delegates="SendsNotifications@megaphone"
    accessors="true"
{

    property name="id";

    public string function getNotifiableId() {
        return getId();
    }

    public string function getNotifiableType() {
        return "User";
    }

}

notify

Sends a notification to this INotifiable instance.

NameTypeRequiredDefaultDescription

notification

true

The notification instance or a string WireBox mapping to send to the notifiables.

properties

struct

false

{}

A struct of properties to populate the notification with.

Return: notification instance, after it has been populated and sent to the notifiables.

Last updated