Loading modules/social_features/social_landing_page/social_landing_page.module +4 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,10 @@ function _social_landing_page_get_hero_image(NodeInterface $node) { /** @var \Drupal\paragraphs\ParagraphInterface $paragraph_section */ foreach ($landing_page_section_field->referencedEntities() as $paragraph_section) { if ($paragraph_section->get('field_section_paragraph')->isEmpty()) { continue; } // Get the related paragraph (the one with the actual content) $section_id = $paragraph_section->get('field_section_paragraph')->target_id; $paragraph_content = Paragraph::load($section_id); Loading Loading
modules/social_features/social_landing_page/social_landing_page.module +4 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,10 @@ function _social_landing_page_get_hero_image(NodeInterface $node) { /** @var \Drupal\paragraphs\ParagraphInterface $paragraph_section */ foreach ($landing_page_section_field->referencedEntities() as $paragraph_section) { if ($paragraph_section->get('field_section_paragraph')->isEmpty()) { continue; } // Get the related paragraph (the one with the actual content) $section_id = $paragraph_section->get('field_section_paragraph')->target_id; $paragraph_content = Paragraph::load($section_id); Loading