diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 03726dbedeab98dcc65f397839a81c6b6c8a2e55..5aaf36d3289e7bc0fca69db43c643f851b49d9ee 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -101,17 +101,11 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { // (i.e. faculty colour and get the correct class here). if ($region == "header") { - // Get the main menu from the uwService. - $main_menu = \Drupal::service('uw_cfg_common.uw_service')->uwGetMenu('main', TRUE); - - // Get the secondary menu (which is the information menu) from the uwService. - $secondary_menu = \Drupal::service('uw_cfg_common.uw_service')->uwGetMenu('uw-menu-audience-menu', TRUE); - // Set the main menu variable. - $variables['main_menu'] = $main_menu; + $variables['main_menu'] = \Drupal::service('uw_cfg_common.uw_service')->uwGetMenu('main', TRUE, TRUE); // Set the secondary menu variable. - $variables['secondary_menu'] = $secondary_menu; + $variables['secondary_menu'] = \Drupal::service('uw_cfg_common.uw_service')->uwGetMenu('uw-menu-audience-menu', TRUE, TRUE); // The class that is used for the header. $variables['classes'][] = 'uw-header';