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.

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

Last updated