From d4193d1db96a77ae6f9027202ce5157ed83cc4e5 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 29 Jan 2022 11:25:20 -0500 Subject: [PATCH] APIv4 - Rename 'SoftDelete' trait => 'SoftDeleteEntity' --- Civi/Api4/Action/Contact/Delete.php | 2 +- .../Generic/Traits/{SoftDelete.php => SoftDeleteEntity.php} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename Civi/Api4/Generic/Traits/{SoftDelete.php => SoftDeleteEntity.php} (97%) diff --git a/Civi/Api4/Action/Contact/Delete.php b/Civi/Api4/Action/Contact/Delete.php index 5d2267441a..158e9dce33 100644 --- a/Civi/Api4/Action/Contact/Delete.php +++ b/Civi/Api4/Action/Contact/Delete.php @@ -17,7 +17,7 @@ namespace Civi\Api4\Action\Contact; * @inheritDoc */ class Delete extends \Civi\Api4\Generic\DAODeleteAction { - use \Civi\Api4\Generic\Traits\SoftDelete; + use \Civi\Api4\Generic\Traits\SoftDeleteEntity; /** * @param $items diff --git a/Civi/Api4/Generic/Traits/SoftDelete.php b/Civi/Api4/Generic/Traits/SoftDeleteEntity.php similarity index 97% rename from Civi/Api4/Generic/Traits/SoftDelete.php rename to Civi/Api4/Generic/Traits/SoftDeleteEntity.php index 108495d7fc..4ddb288487 100644 --- a/Civi/Api4/Generic/Traits/SoftDelete.php +++ b/Civi/Api4/Generic/Traits/SoftDeleteEntity.php @@ -16,7 +16,7 @@ namespace Civi\Api4\Generic\Traits; * @method $this setUseTrash(bool $useTrash) Pass FALSE to force delete and bypass trash * @method bool getUseTrash() */ -trait SoftDelete { +trait SoftDeleteEntity { /** * Should $ENTITY be moved to the trash instead of permanently deleted? -- 2.25.1