kartik\builder\FormGrid::getGridOutput PHP Method

getGridOutput() protected method

Generates the form grid layout.
protected getGridOutput ( ) : string
return string the generated form grid layout.
    protected function getGridOutput()
    {
        $output = '';
        foreach ($this->rows as $row) {
            $defaults = ['model' => $this->model, 'form' => $this->form, 'formName' => $this->formName, 'columns' => $this->columns, 'attributeDefaults' => $this->attributeDefaults, 'autoGenerateColumns' => $this->autoGenerateColumns, 'columnSize' => $this->columnSize, 'columnOptions' => $this->columnOptions, 'rowOptions' => $this->rowOptions, 'options' => $this->fieldSetOptions];
            $config = array_replace_recursive($defaults, $row);
            $output .= Form::widget($config) . "\n";
        }
        return $output;
    }