src/Component/Frontend/RecipeModal/Create.php
protected function createComponentStructureRecipeModal() : object
    {
        $control = $this->IStructure_RecipeModal->create();


        $control->onSave[] = function () use ($control)
        {
            $control->redrawControl('recipeForm');

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


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

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


        $control->onSave[] = function () use ($control)
        {
            $control->redrawControl('recipeForm');

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


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

        return $control;
    }
Modální okno pro definování struktur
@return RecipeModal