DeleteActionInterface ​
- Type
- Interface
- Namespace
- craft\elements\actions
- Implemented by
- craft\elements\actions\Delete, craft\elements\actions\DeleteUsers
- Since
- 3.6.5
DeleteActionInterface should be implemented by Delete element actions that support hard deletion.
setHardDelete() will only be invoked when viewing soft-deleted elements.
Public Methods ​
Method | Description |
---|---|
canHardDelete() | Returns whether the action is capable of hard-deleting elements. |
setHardDelete() | Instructs the action that the elements should be hard-deleted. |
canHardDelete()
​
Returns whether the action is capable of hard-deleting elements.
Returns ​
setHardDelete()
​
Instructs the action that the elements should be hard-deleted.