3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 use Civi\WorkflowMessage\GenericWorkflowMessage
;
15 * Invoice generated when invoicing is enabled.
17 * @support template-only
18 * @see CRM_Contribute_Form_Task_Invoice::printPDF
20 class CRM_Contribute_WorkflowMessage_ContributionInvoiceReceipt
extends GenericWorkflowMessage
{
22 use CRM_Contribute_WorkflowMessage_ContributionTrait
;
24 public const WORKFLOW
= 'contribution_invoice_receipt';
27 * Specify any tokens that should be exported as smarty variables.
29 * @todo it might be that this should be moved to the trait as we
30 * we work through these.
32 * @param array $export
34 protected function exportExtraTokenContext(array &$export): void
{
35 $export['smartyTokenAlias']['currency'] = 'contribution.currency';