4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
14 * Class CRM_Contribute_Tokens
16 * Generate "contribution.*" tokens.
18 * At time of writing, we don't have any particularly special tokens -- we just
19 * do some basic formatting based on the corresponding DB field.
21 class CRM_Contribute_Tokens
extends CRM_Core_EntityTokens
{
26 protected function getEntityAlias(): string {
31 * Get the entity name for api v4 calls.
33 * In practice this IS just ucfirst($this->GetEntityName)
34 * but declaring it seems more legible.
38 protected function getApiEntityName(): string {
39 return 'Contribution';
45 public function getCurrencyFieldName() {