APIv4 - Refactor field options getter into a swappable callback function
authorColeman Watts <coleman@civicrm.org>
Sat, 29 May 2021 00:31:12 +0000 (20:31 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 29 May 2021 23:53:45 +0000 (19:53 -0400)
commit2bf220fd5b6025db6aa653227acc6d96fbf7cab9
tree68e7090090e885e67f28ead9b6e7e9993b71ff28
parentff2fb35c77ca8547b5829a596b926129fd012a0a
APIv4 - Refactor field options getter into a swappable callback function

This allows any fieldSpec provider to change the callback used to build field options,
or to add an ad-hoc field not in the schema with its own option getter.
Civi/Api4/Action/CustomValue/GetFields.php
Civi/Api4/Generic/DAOGetFieldsAction.php
Civi/Api4/Service/Spec/CustomFieldSpec.php
Civi/Api4/Service/Spec/FieldSpec.php
Civi/Api4/Service/Spec/SpecFormatter.php
tests/phpunit/api/v4/Action/GetFieldsTest.php
tests/phpunit/api/v4/Spec/SpecFormatterTest.php