Class DeleteHandler handles the delete action.
delete(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $modelId) : void
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Exception\EditOnlyModeException |
If the data definition is in edit only mode. |
---|---|
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Exception\NotDeletableException |
If the data definition does not allow delete actions. |
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If the model is not found. |
process()
deleteChildren() : void
fetchModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $modelId) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If no model are found. |
---|
guardIsDeletable(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $modelId, bool $redirect) : void
bool
If true it redirects to error page instead of throwing an exception.
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Exception\NotDeletableException |
If deletion is disabled. |
---|