diff --git a/CRM/Contribute/WorkflowMessage/ContributionInvoiceReceipt.php b/CRM/Contribute/WorkflowMessage/ContributionInvoiceReceipt.php index e18907027dc0..c11d6f32f297 100644 --- a/CRM/Contribute/WorkflowMessage/ContributionInvoiceReceipt.php +++ b/CRM/Contribute/WorkflowMessage/ContributionInvoiceReceipt.php @@ -23,16 +23,4 @@ class CRM_Contribute_WorkflowMessage_ContributionInvoiceReceipt extends GenericW public const WORKFLOW = 'contribution_invoice_receipt'; - /** - * Specify any tokens that should be exported as smarty variables. - * - * @todo it might be that this should be moved to the trait as we - * we work through these. - * - * @param array $export - */ - protected function exportExtraTokenContext(array &$export): void { - $export['smartyTokenAlias']['currency'] = 'contribution.currency'; - } - } diff --git a/CRM/Contribute/WorkflowMessage/ContributionTrait.php b/CRM/Contribute/WorkflowMessage/ContributionTrait.php index 433ef71d6721..f4cc8a5c54e3 100644 --- a/CRM/Contribute/WorkflowMessage/ContributionTrait.php +++ b/CRM/Contribute/WorkflowMessage/ContributionTrait.php @@ -219,4 +219,13 @@ protected function exportExtraTplParams(array &$export): void { $export['isShowTax'] = (bool) Civi::settings()->get('invoicing'); } + /** + * Specify any tokens that should be exported as smarty variables. + * + * @param array $export + */ + protected function exportExtraTokenContext(array &$export): void { + $export['smartyTokenAlias']['currency'] = 'contribution.currency'; + } + }