Loading modules/drowl_paragraphs_type_markup/drowl_paragraphs_type_markup.module +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,11 @@ function drowl_paragraphs_type_markup_preprocess_paragraph__markup(&$variables) // we add the empty-check-workaround. Typically markup like Javascript // might not have visual output, but should be rendered anyway! if (!empty($variables['content']['field_paragraphs_markup'][0])) { // Create #suffix array key, if it doesn't exist: if(!isset($variables['content']['field_paragraphs_markup'][0]['#suffix'])){ $variables['content']['field_paragraphs_markup'][0]['#suffix'] = ''; } // Append the empty-check-workaround: $variables['content']['field_paragraphs_markup'][0]['#suffix'] .= '<span class="empty-check-workaround element-hidden"> </span>'; } } Loading
modules/drowl_paragraphs_type_markup/drowl_paragraphs_type_markup.module +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,11 @@ function drowl_paragraphs_type_markup_preprocess_paragraph__markup(&$variables) // we add the empty-check-workaround. Typically markup like Javascript // might not have visual output, but should be rendered anyway! if (!empty($variables['content']['field_paragraphs_markup'][0])) { // Create #suffix array key, if it doesn't exist: if(!isset($variables['content']['field_paragraphs_markup'][0]['#suffix'])){ $variables['content']['field_paragraphs_markup'][0]['#suffix'] = ''; } // Append the empty-check-workaround: $variables['content']['field_paragraphs_markup'][0]['#suffix'] .= '<span class="empty-check-workaround element-hidden"> </span>'; } }