diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 11958b6d435b61360da1d93ac8b95f72c8a696a9..492f2bd320188dd6efedcc44cfd63cf6f8142415 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -659,6 +659,12 @@ function uw_fdsu_theme_resp_preprocess_container(&$variables) { if ($node) { $variables['header_data'] = $uwNodeContent->getNodeContent($node, 'full', 'header'); $variables['footer_data'] = $uwNodeContent->getNodeContent($node, 'full', 'footer'); + + // If this is an event, add the ical url so that it displays + // inside of layout builder. + if ($node->getType() == 'uw_ct_event') { + $variables['header_data']['ical'] = _uw_ct_event_get_ical_link($node->id()); + } } } }