APIv4 - Add function to get api class name
authorColeman Watts <coleman@civicrm.org>
Mon, 22 Mar 2021 16:01:43 +0000 (12:01 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 22 Mar 2021 20:14:21 +0000 (16:14 -0400)
commiteb378b8a38c6f17d9348e08a72d8ab89c8ff1823
tree7b404235ca58185bd627ec3c5286b99009b5c410
parent320bec9ced5bb72d3ce018a12a9a49604d2cc155
APIv4 - Add function to get api class name

Adding the "Case" entity is a problem because it's a reserved php keyword.
So we need to be able to have entity names that don't match their classname.
This function gives us a way to get api class names without guessing from the entity name.
Civi/API/Request.php
Civi/Api4/Action/Entity/Get.php
Civi/Api4/Action/Entity/GetLinks.php
Civi/Api4/CustomValue.php
Civi/Api4/Generic/AbstractAction.php
Civi/Api4/Generic/AbstractEntity.php
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Utils/CoreUtil.php
tests/phpunit/api/v4/Entity/ConformanceTest.php