Merge pull request #17026 from jitendrapurohit/dev-57
[civicrm-core.git] / api / api.php
index 845ab3d8b579022b1bdd33ad6f9fe68a272f1151..8208af08db30d36f42b8a9e653f983f18bd69e62 100644 (file)
@@ -195,7 +195,7 @@ function civicrm_error($result) {
  * @return string|null
  */
 function _civicrm_api_get_camel_name($entity) {
-  return is_string($entity) ? CRM_Utils_String::convertStringToCamel($entity) : NULL;
+  return is_string($entity) ? \Civi\API\Request::normalizeEntityName($entity) : NULL;
 }
 
 /**