APIv4 - Add entity metadata about class args
authorColeman Watts <coleman@civicrm.org>
Fri, 25 Feb 2022 15:42:29 +0000 (10:42 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 27 Feb 2022 01:16:12 +0000 (20:16 -0500)
commite01b30d70a0f19839d0c0f0e2f2213d85f4fea0b
treebd884fe02fa03fcd9f6b194ddbb3664c2f223666
parent1f3e4c253d694268cf300ee65f3962017a7df769
APIv4 - Add entity metadata about class args

The CustomValue API is a virtual API, where multiple entities all get routed to the
same class if they share the prefix "Custom_", and pass a class arg to the
php factory functions e.g. `CustomValue::get('MyCustomGroup')`.
Instead of hard-coding this idea into the  now it's part of the entity
metadata so that other APIs, notaby ECK, can use a similar pattern.
Civi/Api4/Entity.php
Civi/Api4/Provider/CustomEntityProvider.php
ang/api4Explorer/Explorer.js
tests/phpunit/api/v4/Action/CustomValueTest.php