Commit | Line | Data |
---|---|---|
6a488035 | 1 | <?php |
1c88e578 | 2 | /* |
3 | +--------------------------------------------------------------------+ | |
a30c801b | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
b081365f | 5 | | | |
a30c801b TO |
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 | | |
b081365f CW |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
11 | ||
12 | /** | |
13 | * @package CiviCRM_APIv3 | |
e70a7fc0 | 14 | */ |
6a488035 | 15 | |
aa1b1481 | 16 | /** |
cd5823ae EM |
17 | * Get available api actions. |
18 | * | |
72b3a70c | 19 | * @param array $apiRequest |
aa1b1481 EM |
20 | * |
21 | * @return array | |
22 | * @throws API_Exception | |
23 | */ | |
c65db512 | 24 | function civicrm_api3_generic_getActions($apiRequest) { |
cf8f0fff | 25 | civicrm_api3_verify_mandatory($apiRequest, NULL, ['entity']); |
048222df | 26 | $mfp = \Civi::service('magic_function_provider'); |
82376c19 | 27 | $actions = $mfp->getActionNames($apiRequest['version'], $apiRequest['entity']); |
a14e9d08 | 28 | return civicrm_api3_create_success($actions, $apiRequest['params'], $apiRequest['entity'], 'getactions'); |
6a488035 | 29 | } |