original_string: protected function makeItemFormWidget($index = 0, $groupCode = null)
      {
          $configDefinition = $this->useGroups
              ? $this->getGroupFormFieldConfig($groupCode)
              : $this->form;
  
          $config = $this->makeConfig($configDefinition);
          $config->model = $this->model;
          $config->data = $this->getLoadValueFromIndex($index);
          $config->alias = $this->alias . 'Form'.$index;
          $config->arrayName = $this->getFieldName().'['.$index.']';
          $config->isNested = true;
  
          $widget = $this->makeWidget('Backend\Widgets\Form', $config);
          $widget->bindToController();
  
          $this->indexMeta[$index] = [
              'groupCode' => $groupCode
          ];
  
          return $this->formWidgets[$index] = $widget;
      }
code: protected function makeItemFormWidget($index = 0, $groupCode = null)
      {
          $configDefinition = $this->useGroups
              ? $this->getGroupFormFieldConfig($groupCode)
              : $this->form;
  
          $config = $this->makeConfig($configDefinition);
          $config->model = $this->model;
          $config->data = $this->getLoadValueFromIndex($index);
          $config->alias = $this->alias . 'Form'.$index;
          $config->arrayName = $this->getFieldName().'['.$index.']';
          $config->isNested = true;
  
          $widget = $this->makeWidget('Backend\Widgets\Form', $config);
          $widget->bindToController();
  
          $this->indexMeta[$index] = [
              'groupCode' => $groupCode
          ];
  
          return $this->formWidgets[$index] = $widget;
      }
code_tokens: protected function makeItemFormWidget ( $ index = 0 , $ groupCode = null ) { $ configDefinition = $ this -> useGroups ? $ this -> getGroupFormFieldConfig ( $ groupCode ) : $ this -> form ; $ config = $ this -> makeConfig ( $ configDefinition ) ; $ config -> model = $ this -> model ; $ config -> data = $ this -> getLoadValueFromIndex ( $ index ) ; $ config -> alias = $ this -> alias . 'Form' . $ index ; $ config -> arrayName = $ this -> getFieldName ( ) . '[' . $ index . ']' ; $ config -> isNested = true ; $ widget = $ this -> makeWidget ( 'Backend\Widgets\Form' , $ config ) ; $ widget -> bindToController ( ) ; $ this -> indexMeta [ $ index ] = [ 'groupCode' => $ groupCode ] ; return $ this -> formWidgets [ $ index ] = $ widget ; }
docstring: Creates a form widget based on a field index and optional group code.
  @param int $index
  @param string $index
  @return \Backend\Widgets\Form
docstring_tokens: Creates a form widget based on a field index and optional group code .