Commit cb6eaeee authored by Andrii Chyrskyi's avatar Andrii Chyrskyi
Browse files

Merge pull request #2904 from goalgorilla/issue/3063436-social_landing_page_gives_warning

Issue #3063436 by Ressinel: Social landing page gives: Warning: array_flip(): Can only flip STRING and INTEGER values
parent 2ccfedc4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);