Merge pull request #19683 from colemanw/searchDisplayFixes
[civicrm-core.git] / api / v3 / Entity.php
index 4bab9fe8935bc4c8ba5df96be52ee59c159aeea2..fba4b7eb1a59ac73bcf68c65f4f861b8d1eba9a6 100644 (file)
@@ -14,6 +14,8 @@ function _civicrm_api3_entity_deprecation($entities) {
   $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;
       }