In ASU Brand 7.x, we were able to inject raw HTML into the via the drupal_add_html_head function. Since that function is no longer available in Drupal 8, delivering the ASU Header's JS and CSS assets had to be done differently. Basically, I'm manually crafting the URLs for the different external assets relying on the assumption that those URLS won't change in the version of the ASU Header that ASU Brand 8.x supports. As of this writing, that ASU Header version is 4.6.
This version of ASU Brand 8.x relies heavily on Drupal 8's Dynamic Page Caching which keeps the header and footer block from being rebuilt on every page load; as a consequence of that, an http call is made to download the ASU header (.shtml file) only when the module is enable and after the caches are rebuilt. There's no long term caching in this version of ASU Brand 8.x.
ASU Students footer is not included.
This module hasn't yet been tested on Internet Explorer browsers.
Features:
ASU Header and Footer blocks.
CAS integration to automatically create accounts.
ASU wide and custom Google Tag Manager support with on and off switches.
Developer notes:
drupal_add_html_head
function. Since that function is no longer available in Drupal 8, delivering the ASU Header's JS and CSS assets had to be done differently. Basically, I'm manually crafting the URLs for the different external assets relying on the assumption that those URLS won't change in the version of the ASU Header that ASU Brand 8.x supports. As of this writing, that ASU Header version is 4.6.Features: