3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 namespace Civi\Api4\Generic\Traits
;
15 * This trait is used by delete actions with a "move to trash" option.
16 * @method $this setUseTrash(bool $useTrash) Pass FALSE to force delete and bypass trash
17 * @method bool getUseTrash()
19 trait SoftDeleteActionTrait
{
22 * Should $ENTITY be moved to the trash instead of permanently deleted?
25 protected $useTrash = TRUE;