Recipient Selection¶
Plugin ID: danse:danse_recipient_selection
Available since: 2.3.0
Provided tokens
| Token | Description |
|---|---|
[user] |
The current user. Alias: current_user |
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
Fires when the DANSE (Drupal Advanced Notification System for Entities) module requests recipient selection through ECA. Use this to dynamically determine which users should receive a notification.
The [danse_recipients] token provides a list to which you can add user entities or user IDs. Each ECA model using this event automatically registers as a DANSE recipient selection plugin.
Fields¶
Event ID— config key:event_id-
The event ID to trigger this event directly.
Type:
textfield· Required: yes · Default: empty stringThe event ID to trigger this event directly. Must match the ID used by the DANSE recipient selection plugin dispatching the event.