openeuropa/oe_whitelabel

Unprocessed fields for paragraphs "Text with Featured Media"

Closed this issue · 0 comments

When a Text with Featured Media has no media, it will skip some important processing.

I'm referring to the hook oe_whitelabel_preprocess_paragraph__oe_text_feature_media.

Right in the beginning it bails out if there is no media present.

Like this the link $variables['link'] is not processed. But it should, even without media.
Also $variables['text_position'] should probably be processed.