How can I return all user custom profile fields in an array? Hi I'm sure this is simple but it is eluding me. I want to pull out all the user profile fields with twig as an array that I can then check. When I dump the user or currentUser data it does not show any of the profile fields I have created in the returned object. I can however still access these fields with user.customfieldname. How can I return the array I am looking for?
Custom field data is accessible via currentUser.getContent().

Using dump:

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


Or to output as string:

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