Looking for a way to preprocess two fields. I am trying to hide Field 1 from display if Field 2 has value.
If Field 1 has value and Field 2 has value display Field 2 only. If Field 1 has value and Field 2 has NO value display Field 1.
This should only apply to content type USER POSTS. And I am using Display Suite to arrange the fields if that makes a difference.
What would be the preprocess hook to place on mytheme.theme?
Any help is greatly appreciated.