From 30e7f0bdea49e84d4fd525340cf040e69259b563 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Tue, 12 Apr 2022 16:06:06 -0400
Subject: [PATCH] ISTWCMS-4729: adding search form to header region

---
 templates/regions/region--header.html.twig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/templates/regions/region--header.html.twig b/templates/regions/region--header.html.twig
index 96859013..e296f54b 100644
--- a/templates/regions/region--header.html.twig
+++ b/templates/regions/region--header.html.twig
@@ -12,6 +12,8 @@
  * @see template_preprocess_region()
  */
 #}
+{% set search = drupal_form('Drupal\\uw_cfg_common\\Form\\UwSearchForm') %}
+
 {% include '@layouts/header/header.twig' with {
   'site_name': site_name,
   'faculty': faculty,
@@ -19,5 +21,6 @@
   'nav_items': main_menu,
   'secondary_items': secondary_menu,
   'home_link': home_link,
-  'global_message': global_message
+  'global_message': global_message,
+  'search': search
 }%}
-- 
GitLab