src/Component/Frontend/VariableRemoveModal/Create.php
protected function createComponentStructureVariableRemoveModal() : object
    {
        $control = $this->IStructure_VariableRemoveModal->create();

        $control->onRemove[] = function ()
        {
            $this->getComponent('structureVariableSummaryModal')->redrawControl('modal');
            $this->getComponent('structureRecipeSummaryModal')->redrawControl('modal');
        };

        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('modal');
        };

        return $control;
    }
protected function createComponentStructureVariableRemoveModal() : object
    {
        $control = $this->IStructure_VariableRemoveModal->create();

        $control->onRemove[] = function ()
        {
            $this->getComponent('structureVariableSummaryModal')->redrawControl('modal');
            $this->getComponent('structureRecipeSummaryModal')->redrawControl('modal');
        };

        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('modal');
        };

        return $control;
    }
Modální okno pro odstranění
@return VariableRemoveModal