Skip to content

DeleteActionInterface ​

Type
Interface
Namespace
craft\elements\actions
Implemented by
craft\elements\actions\Delete, craft\elements\actions\DeleteAssets, 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.

View source

Public Methods ​

MethodDescription
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.

View source

Returns ​

boolean

setHardDelete() ​

Instructs the action that the elements should be hard-deleted.

View source