Promotion: Coupon predeleteΒΆ
Plugin ID: eca_commerce:promotion_coupon_predelete
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[user] |
The current user. Alias: current_user |
[commerce_coupon] |
The coupon entity. |
[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. |
Reacts before a coupon is deleted. The entity still exists at this point.
The [commerce_coupon] token provides the coupon entity about to be deleted.