APIv4 - Provide pseudo-fields and Revert action for managed entities
authorColeman Watts <coleman@civicrm.org>
Mon, 1 Nov 2021 13:43:56 +0000 (09:43 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 2 Nov 2021 16:23:36 +0000 (12:23 -0400)
commit9626d0a168135472bf8db02cd29048a61a0e6aae
treee5b576e99fb2e9222be460562df06a2ac50587df
parenta4b17a2cafd3310a369a51280daf16cab4a10d8b
APIv4 - Provide pseudo-fields and Revert action for managed entities

This new "ManagedEntity" trait provides 2 extra fields and a Revert action
to facilitate UIs which show the managed state and a revert button,
similar to the AfformAdmin UI.
CRM/Core/ManagedEntities.php
Civi/Api4/Entity.php
Civi/Api4/Generic/Traits/ManagedEntity.php [new file with mode: 0644]
Civi/Api4/SavedSearch.php
Civi/Api4/Service/Spec/Provider/ManagedEntitySpecProvider.php [new file with mode: 0644]
ext/search_kit/Civi/Api4/SearchDisplay.php
tests/phpunit/api/v4/Entity/ManagedEntityTest.php [new file with mode: 0644]