Merge pull request #20115 from larssandergreen/fix-internal-anchor-URLs-in-mailings
[civicrm-core.git] / CRM / Contribute / Form / Task / Email.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * This class provides the functionality to email a group of contacts.
20 */
21 class CRM_Contribute_Form_Task_Email extends CRM_Contribute_Form_Task {
22 use CRM_Contact_Form_Task_EmailTrait;
23
24 /**
25 * Get selected contribution IDs.
26 *
27 * @return array
28 *
29 * @throws \CRM_Core_Exception
30 */
31 protected function getContributionIDs(): array {
32 return $this->getIDs();
33 }
34
35 /**
36 * List available tokens for this form.
37 *
38 * @return array
39 */
40 public function listTokens() {
41 $tokens = CRM_Core_SelectValues::contactTokens();
42 $tokens = array_merge(CRM_Core_SelectValues::contributionTokens(), $tokens);
43 return $tokens;
44 }
45
46 }