The trait is used by actions, not by entities.
* @inheritDoc
*/
class Delete extends \Civi\Api4\Generic\DAODeleteAction {
- use \Civi\Api4\Generic\Traits\SoftDeleteEntity;
+ use \Civi\Api4\Generic\Traits\SoftDeleteActionTrait;
/**
* @param $items
namespace Civi\Api4\Generic\Traits;
/**
- * This trait is used by entities with a "move to trash" option.
+ * This trait is used by delete actions with a "move to trash" option.
* @method $this setUseTrash(bool $useTrash) Pass FALSE to force delete and bypass trash
* @method bool getUseTrash()
*/
-trait SoftDeleteEntity {
+trait SoftDeleteActionTrait {
/**
* Should $ENTITY be moved to the trash instead of permanently deleted?