Commit 2ec7b176 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi
Browse files

Merge pull request #2906 from goalgorilla/issue/3277208-landing_page_has_no_hero_image

Issue #3277208 by Ressinel: A Landing page has no hero image when shown in the Featured content
parent 2f2f62f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ function _social_landing_page_get_hero_image(NodeInterface $node) {
    // Must be of type hero.
    if ($paragraph_content && $paragraph_content->getType() === 'hero') {
      if ($paragraph_content->get('field_hero_image')->isEmpty()) {
        return [];
        continue;
      }
      $fid = $paragraph_content->get('field_hero_image')->target_id;
      $file = File::load($fid);