From 66f9eac401da8087c563d6ef3b30d0a6cff5b0de Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 20 Oct 2022 11:04:15 -0400
Subject: [PATCH] ISTWCMS-5880: fixing media in layout builder

---
 uw_fdsu_theme_resp.theme | 1 +
 1 file changed, 1 insertion(+)

diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme
index f266104d..fc4f84e3 100644
--- a/uw_fdsu_theme_resp.theme
+++ b/uw_fdsu_theme_resp.theme
@@ -625,6 +625,7 @@ function uw_fdsu_theme_resp_preprocess_container(&$variables) {
         // Set variables for featured image.
         $variables['node_type'] = str_replace('_', '-', $node->getType());
         $variables['media'] = $uwService->uwCheckNodeForMedia($node);
+        $variables['media_flags'] = $uwService->uwGetMediaFlags($node);
 
         // If there is a node object, get the header and footer data.
         if ($node) {
-- 
GitLab