-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3403 from narration-sd/3.1-element-full-delete
3.1 element full delete
- Loading branch information
Showing
3 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\events; | ||
|
||
use craft\base\ElementInterface; | ||
use yii\base\Event; | ||
|
||
/** | ||
* Delete element event class. | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 3.0 | ||
*/ | ||
class DeleteElementEvent extends ElementEvent | ||
{ | ||
// Properties | ||
// ========================================================================= | ||
|
||
/** | ||
* @var bool Whether to immediately hard-delete the element, rather than soft-deleting it | ||
*/ | ||
public $hardDelete = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters