How can I return all user custom profile fields in an array?
Custom field data is accessible via currentUser.getContent().

Using dump:

{{ dump(currentUser.getContent()) }}


Or to output as string:

{{ currentUser.getContent()|join(', ') }}