APIv4 - Improve pseudoconstant support in getFields
authorColeman Watts <coleman@civicrm.org>
Sun, 31 Jul 2022 01:41:17 +0000 (21:41 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 31 Jul 2022 14:18:47 +0000 (10:18 -0400)
commit8031eb8ed84efa17ba80811d3cc236d8c4eb43d4
treebf1bac69e27b4b456ef01c0ab05dc8770958b934
parent6ca5ac826c6f58648e4de0023fc573c2d9235bfd
APIv4 - Improve pseudoconstant support in getFields

This allows APIv4 getFields arrays to specify a pseudoconstant key which is
automatically transformed into an array of options in the right format.
Civi/Api4/Entity.php
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Service/Spec/SpecFormatter.php
Civi/Api4/Utils/CoreUtil.php
ext/afform/core/Civi/Api4/Afform.php
ext/afform/core/tests/phpunit/Civi/Afform/AfformGetFieldsTest.php [new file with mode: 0644]