src/Sulu/Component/Rest/ListBuilder/ListRestHelper.php
public function getFields()
    {
        $fields = $this->getRequest()->get('fields');

        return (null != $fields) ? explode(',', $fields) : null;
    }
public function getFields()
    {
        $fields = $this->getRequest()->get('fields');

        return (null != $fields) ? explode(',', $fields) : null;
    }
public function getFields ( ) { $ fields = $ this -> getRequest ( ) -> get ( 'fields' ) ; return ( null != $ fields ) ? explode ( ',' , $ fields ) : null ; }
Returns an array with all the fields, which should be contained in the response.
If null is returned every field should be contained.

@return array|null
Returns an array with all the fields which should be contained in the response . If null is returned every field should be contained .