src/Graviton/DocumentBundle/DependencyInjection/Compiler/DocumentFieldNamesCompilerPass.php
private function getFieldNames(Document $document)
    {
        $result = [];
        foreach ($document->getFields() as $field) {
            $result[$field->getFieldName()] = $field->getExposedName();
        }
        return $result;
    }
private function getFieldNames(Document $document)
    {
        $result = [];
        foreach ($document->getFields() as $field) {
            $result[$field->getFieldName()] = $field->getExposedName();
        }
        return $result;
    }
private function getFieldNames ( Document $ document ) { $ result = [ ] ; foreach ( $ document -> getFields ( ) as $ field ) { $ result [ $ field -> getFieldName ( ) ] = $ field -> getExposedName ( ) ; } return $ result ; }
Get field names

@param Document $document Document
@return array
Get field names