From 1bd5d7641b751bc2233030f3e62424c440a38856 Mon Sep 17 00:00:00 2001
From: ebremner <ebremner@uwaterloo.ca>
Date: Mon, 16 Nov 2020 16:04:15 -0500
Subject: [PATCH] ISTWCMS-4199: preprocessing site_name to be available in
 header

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

diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme
index b1f9941f..186950a1 100644
--- a/uw_fdsu_theme_resp.theme
+++ b/uw_fdsu_theme_resp.theme
@@ -69,6 +69,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
     // The class that is used for the header.
     $variables['classes'][] = 'uw-header';
 
+    // Get the site name for placing inside the menu.
+    $config = \Drupal::config('system.site');
+    $variables['site_name'] = $config->get('name');
+
     $variables['faculty'] = theme_get_setting('wcms_colour_scheme', 'uw_fdsu_theme_resp') ? theme_get_setting('wcms_colour_scheme', 'uw_fdsu_theme_resp') : 'org-default';
   }
 }
-- 
GitLab