Class CopyModelController handles copy action on a model.
copy(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $modelId) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
process()
guardIsCreatable(\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\NotCreatableException |
If deletion is disabled. |
---|
redirect(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $copiedModelId) : void