Merge pull request #21484 from JKingsnorth/price-field-id-css
[civicrm-core.git] / CRM / Event / ParticipantTokens.php
1 <?php
2
3 /*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
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 +--------------------------------------------------------------------+
11 */
12
13 /**
14 * Class CRM_Event_ParticipantTokens
15 *
16 * Generate "participant.*" tokens.
17 */
18 class CRM_Event_ParticipantTokens extends CRM_Core_EntityTokens {
19
20 /**
21 * Get the entity name for api v4 calls.
22 *
23 * @return string
24 */
25 protected function getApiEntityName(): string {
26 return 'Participant';
27 }
28
29 /**
30 * @return array
31 */
32 public function getCurrencyFieldName(): array {
33 return ['fee_currency'];
34 }
35
36 }