I need to create advanced user profile page template.
I've copied user-profile.tpl.php from core to my template directory, file is used by backdrop, so far so good.
Now, here: https://api.backdropcms.org/api/backdrop/core!modules!user!templates!use... is mentioned: "Use render($user_profile) to print all profile items, or print a subset such as render($user_profile['user_picture'])". Which is fine and expected, but when I dpm all the variables I can see:
user_profile: (array, 8 elements) [... , ... , profile_uczestnik (array, 10 elements) [... , ... , ... , #markup(string)] , [...]]
So user_profile array, with profiles (I'm using profile module) but within each profile array there are no field objects, just flattened string. So I can do nothing in terms of template theming, because I have only render($user_profile) at my disposal.
I tried using hook_preprocess_user_profile, but there are no field objects either, just #markup.
How and where to get this variables one by one?