Skip to content
Snippets Groups Projects
Commit 1bd5d764 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4199: preprocessing site_name to be available in header

parent bf1eee32
No related branches found
No related tags found
1 merge request!6Feature/istwcms 4199 ebremner horizontal menu
...@@ -69,6 +69,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { ...@@ -69,6 +69,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
// The class that is used for the header. // The class that is used for the header.
$variables['classes'][] = 'uw-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'; $variables['faculty'] = theme_get_setting('wcms_colour_scheme', 'uw_fdsu_theme_resp') ? theme_get_setting('wcms_colour_scheme', 'uw_fdsu_theme_resp') : 'org-default';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment