* Array of deprecated api entities
*/
function _civicrm_api3_entity_deprecation($entities) {
- $deprecated = array();
+ $deprecated = [];
if (!empty($entities['values'])) {
foreach ($entities['values'] as $entity) {
+ $apiFile = "api/v3/$entity.php";
+ @include_once $apiFile;
if (is_string(_civicrm_api3_deprecation_check($entity))) {
$deprecated[] = $entity;
}
function civicrm_api3_entity_getfields($params) {
// we return an empty array so it makes it easier to write generic getdefaults / required tests
// without putting an exception in for entity
- return civicrm_api3_create_success(array());
+ return civicrm_api3_create_success([]);
}