src/Component/Frontend/RecipeRemoveModal/Create.php
protected function createComponentStructureRecipeRemoveModal() : object
    {
        $control = $this->IStructure_RecipeRemoveModal->create();

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

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

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

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

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

        return $control;
    }
protected function createComponentStructureRecipeRemoveModal ( ) : object { $ control = $ this -> IStructure_RecipeRemoveModal -> create ( ) ; $ control -> onRemove [ ] = function ( ) { $ this -> getComponent ( 'structureRecipeModal' ) -> redrawControl ( 'modal' ) ; $ this -> getComponent ( 'structureRecipeSummaryModal' ) -> redrawControl ( 'modal' ) ; } ; $ control -> onOpen [ ] = function ( ) use ( $ control ) { $ control -> redrawControl ( 'modal' ) ; } ; return $ control ; }
Modální okno pro odstranění
@return RecipeRemoveModal
Modální okno pro odstranění