src/Component/Frontend/RecipeSlugRemoveModal/Create.php
protected function createComponentStructureRecipeSlugRemoveModal() : object
    {
        $control = $this->IStructure_RecipeSlugRemoveModal->create();

        $control->onRemove[] = function ()
        {
            $this->getComponent('structureRecipeSlugModal')->redrawControl('modal'); // SA
            $this->getComponent('structureRecipeSlugModal')->redrawControl('slugForm');
            $this->getComponent('structureRecipeSlugModal')->redrawControl('slugSummary');

            $this->getComponent('structureRecipeSummaryModal')->redrawControl('modal');
        };

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

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

        $control->onRemove[] = function ()
        {
            $this->getComponent('structureRecipeSlugModal')->redrawControl('modal'); // SA
            $this->getComponent('structureRecipeSlugModal')->redrawControl('slugForm');
            $this->getComponent('structureRecipeSlugModal')->redrawControl('slugSummary');

            $this->getComponent('structureRecipeSummaryModal')->redrawControl('modal');
        };

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

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