I'm using hook_preprocess_node
and looking at $variables
. I can see there's two similar keys: content
and elements
. I see that there's a comment in the core code:
// Helpful $content variable for templates.
next to code that copies all elements
keys into content
... I'm unsure why it's helpful, how it's different, and when one would use elements
or content
to achieve a particular goal.
This is a general question, but my task at hand is that I have two separate taxonomy term reference fields and I wish to combine them, alphabetically by term name, into one list for presentation.