protected function getResponse($model)
    {
        $hiddenAttributes = array_filter(explode(',', Yii::$app->getRequest()->getQueryParam('hide', '')));
        $fields = FormBuilder::getFormFields($model, $this->getFields($model, 'form'), false, $hiddenAttributes);

        return [
            'model' => $model,
            'fields' => empty($fields) ? [] : [$fields],
            'relations' => $this->getModelRelations($model, $this->getExtraFields($model)),
        ];
    }
protected function getResponse($model)
    {
        $hiddenAttributes = array_filter(explode(',', Yii::$app->getRequest()->getQueryParam('hide', '')));
        $fields = FormBuilder::getFormFields($model, $this->getFields($model, 'form'), false, $hiddenAttributes);

        return [
            'model' => $model,
            'fields' => empty($fields) ? [] : [$fields],
            'relations' => $this->getModelRelations($model, $this->getExtraFields($model)),
        ];
    }
protected function getResponse ( $ model ) { $ hiddenAttributes = array_filter ( explode ( ',' , Yii :: $ app -> getRequest ( ) -> getQueryParam ( 'hide' , '' ) ) ) ; $ fields = FormBuilder :: getFormFields ( $ model , $ this -> getFields ( $ model , 'form' ) , false , $ hiddenAttributes ) ; return [ 'model' => $ model , 'fields' => empty ( $ fields ) ? [ ] : [ $ fields ] , 'relations' => $ this -> getModelRelations ( $ model , $ this -> getExtraFields ( $ model ) ) , ] ; }
Prepares response params, like fields and relations.
@param ActiveRecord $model
@return array
Prepares response params like fields and relations .