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);
    }