public function cgetFieldsAction(Request $request)
    {
        $form = $this->loadForm($request);
        $fieldDescriptors = [];

        if ($form) {
            $locale = $this->getLocale($request);
            $fieldDescriptors = $this->get('sulu_form.list_builder.dynamic_list_factory')
                ->getFieldDescriptors($form, $locale);
        }

        return $this->handleView($this->view(array_values($fieldDescriptors)));
    }
public function cgetFieldsAction(Request $request)
    {
        $form = $this->loadForm($request);
        $fieldDescriptors = [];

        if ($form) {
            $locale = $this->getLocale($request);
            $fieldDescriptors = $this->get('sulu_form.list_builder.dynamic_list_factory')
                ->getFieldDescriptors($form, $locale);
        }

        return $this->handleView($this->view(array_values($fieldDescriptors)));
    }
public function cgetFieldsAction ( Request $ request ) { $ form = $ this -> loadForm ( $ request ) ; $ fieldDescriptors = [ ] ; if ( $ form ) { $ locale = $ this -> getLocale ( $ request ) ; $ fieldDescriptors = $ this -> get ( 'sulu_form.list_builder.dynamic_list_factory' ) -> getFieldDescriptors ( $ form , $ locale ) ; } return $ this -> handleView ( $ this -> view ( array_values ( $ fieldDescriptors ) ) ) ; }
Returns the fields for a dynamic form.

@param Request $request

@return Response
Returns the fields for a dynamic form .