code: protected function createComponentFormFile() : Multiplier
      {
          $recipeSlug = $this->getRecipeSlug();
          $structure = $this->getStructure();
          $recipeVariables = $this->getFileVariables()->toKeyIndex('Slug');
  
          return new Multiplier(function ($variableSlug) use ($recipeVariables, $recipeSlug, $structure)
          {
              /** @var RecipeVariable $recipeVariable */
              $recipeVariable = $recipeVariables[$variableSlug];
  
              $component = $this->IVariableFormBuilder->buildComponent($recipeSlug->getRecipe(), $recipeVariable, $structure,NULL);
  
              $form = new Form;
              $form->addComponent($component, $recipeVariable->getSlug());
              $form->addSubmit('save');
  
  
              if (!$this->getStructure())
              {
                  foreach ($form->getComponents() as $component)
                  {
                      $component->setDisabled(TRUE);
                  }
              }
  
              $form->onValidate[] = function (Form $form) { $this->validate($form); };
              $form->onSuccess[] = function (Form $form) { $this->successFile($form); };
  
              if (!$this->presenter->user->isAllowed(StructureAuthorizator::RES_STRUCTURE_MODAL))
              {
                  $this->setDisabledForm($form, TRUE);
              }
  
              return $form;
  
          });
      }
docs: File Forms
  @return Multiplier
  @throws \Propel\Runtime\Exception\PropelException