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.

View source (opens new window)

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

View source (opens new window)

Returns

boolean (opens new window)

# setHardDelete()

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

View source (opens new window)