src/Sulu/Component/Rest/ListBuilder/Doctrine/DoctrineListBuilder.php
protected function getAllFields($onlyReturnFilterFields = false)
    {
        $fields = array_merge(
            $this->searchFields,
            $this->sortFields,
            $this->getUniqueExpressionFieldDescriptors($this->expressions)
        );

        if (true !== $onlyReturnFilterFields) {
            $fields = array_merge($fields, $this->selectFields);
        }

        return array_filter($fields, function(FieldDescriptorInterface $fieldDescriptor) {
            return $fieldDescriptor instanceof DoctrineFieldDescriptorInterface;
        });
    }
protected function getAllFields($onlyReturnFilterFields = false)
    {
        $fields = array_merge(
            $this->searchFields,
            $this->sortFields,
            $this->getUniqueExpressionFieldDescriptors($this->expressions)
        );

        if (true !== $onlyReturnFilterFields) {
            $fields = array_merge($fields, $this->selectFields);
        }

        return array_filter($fields, function(FieldDescriptorInterface $fieldDescriptor) {
            return $fieldDescriptor instanceof DoctrineFieldDescriptorInterface;
        });
    }
protected function getAllFields ( $ onlyReturnFilterFields = false ) { $ fields = array_merge ( $ this -> searchFields , $ this -> sortFields , $ this -> getUniqueExpressionFieldDescriptors ( $ this -> expressions ) ) ; if ( true !== $ onlyReturnFilterFields ) { $ fields = array_merge ( $ fields , $ this -> selectFields ) ; } return array_filter ( $ fields , function ( FieldDescriptorInterface $ fieldDescriptor ) { return $ fieldDescriptor instanceof DoctrineFieldDescriptorInterface ; } ) ; }
Returns all DoctrineFieldDescriptors that were passed to list builder.

@param bool $onlyReturnFilterFields Define if only filtering FieldDescriptors should be returned

@return DoctrineFieldDescriptorInterface[]
Returns all DoctrineFieldDescriptors that were passed to list builder .