From 2d9f7abc6987719a7e9dd000964c4a7aa50fba25 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Mon, 29 Nov 2021 17:37:00 +0000
Subject: [PATCH] ISTWCMS-5204: adding image to node layout builder

---
 src/Service/UwNodeContent.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php
index 6976c8ee..2949a10a 100644
--- a/src/Service/UwNodeContent.php
+++ b/src/Service/UwNodeContent.php
@@ -151,6 +151,10 @@ class UwNodeContent {
     }
     else {
       if ($content == 'header') {
+        if ($node->getType() == 'uw_ct_contact') {
+          $node_flags['get_image'] = TRUE;
+        }
+
         $node_flags['get_header'] = TRUE;
         $node_flags['get_title'] = TRUE;
         $node_flags['get_hero'] = TRUE;
-- 
GitLab