APIv4 - Add useTrash option to soft-delete contacts
authorColeman Watts <coleman@civicrm.org>
Sun, 29 Aug 2021 16:17:05 +0000 (12:17 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 30 Nov 2021 17:38:28 +0000 (12:38 -0500)
commita0edf1cb6ac130a286cca03ba98d7e246bf45a2d
tree369ab65b5578850a544276bf6956bef12f87f08d
parentef0a99725710839f7d9d434811693b136d121025
APIv4 - Add useTrash option to soft-delete contacts

This sets Contact::delete to move contacts to the trash by default.
Civi/Api4/Action/Contact/Delete.php [new file with mode: 0644]
Civi/Api4/Contact.php
Civi/Api4/Generic/Traits/SoftDelete.php [new file with mode: 0644]
Civi/Test/Api3TestTrait.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v4/Entity/ConformanceTest.php