src/Sulu/Bundle/ResourceBundle/Controller/FilterController.php
public function fieldsAction(Request $request)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);

        return $this->handleView(
            $this->view(array_values($this->getManager()->getFieldDescriptors($locale)), 200)
        );
    }
public function fieldsAction(Request $request)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);

        return $this->handleView(
            $this->view(array_values($this->getManager()->getFieldDescriptors($locale)), 200)
        );
    }
public function fieldsAction ( Request $ request ) { $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; return $ this -> handleView ( $ this -> view ( array_values ( $ this -> getManager ( ) -> getFieldDescriptors ( $ locale ) ) , 200 ) ) ; }
returns all fields that can be used by list.

@param \Symfony\Component\HttpFoundation\Request $request

@return mixed
returns all fields that can be used by list .