code: public function getForm($primaryModel = false, $settings = [])
      {
          if (!$primaryModel) {
              return false;
          }
          $formSegments = [$this->getFormSegment($primaryModel, $settings)];
          $config = ['class' => $this->formGeneratorClass, 'models' => $primaryModel->collectModels(), 'items' => $formSegments];
  
          return Yii::createObject($config);
      }
docs: Get form.
  
  @param boolean $primaryModel [[@doctodo param_description:primaryModel]] [optional]
  @param array   $settings     [[@doctodo param_description:settings]] [optional]
  
  @return unknown