4 * @support template-only
6 class CRM_Contribute_WorkflowMessage_RecurringCancelled
extends Civi\WorkflowMessage\GenericWorkflowMessage
{
7 use CRM_Contribute_WorkflowMessage_RecurringTrait
;
9 public const WORKFLOW
= 'contribution_recurring_cancelled';
12 * The recurring contribution contact.
23 * Export tokens to smarty as variables.
25 * The key represents the smarty token and the value is the token as
26 * requested from the token processor.
28 * The token is 'the entire part between the curly quotes' eg.
30 * '{contribution_recur.amount|crmMoney}.
32 * Unlike using the contribution directly it will default to 'raw' formatting.
34 * @param array $export
36 protected function exportExtraTokenContext(array &$export): void
{
37 $export['smartyTokenAlias']['amount'] = 'contribution_recur.amount|crmMoney';
38 $export['smartyTokenAlias']['recur_frequency_unit'] = 'contribution_recur.frequency_unit:label';
39 $export['smartyTokenAlias']['recur_frequency_interval'] = 'contribution_recur.frequency_interval';