PHPackages                             asuwebplatforms/asu\_brand - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. asuwebplatforms/asu\_brand

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

asuwebplatforms/asu\_brand
==========================

ASU Header component and brand assets.

2.17.8(1mo ago)076↓66.7%1MITPHP

Since Nov 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ASUWebPlatforms/asu_brand)[ Packagist](https://packagist.org/packages/asuwebplatforms/asu_brand)[ RSS](/packages/asuwebplatforms-asu-brand/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (27)Used By (0)

ASU Brand module for Drupal
===========================

[](#asu-brand-module-for-drupal)

The ASU Brand module provides the following functionality:

- An ASU branded, accessible, Web Standards compliant Header with integration with ASU search and spplying required links. The header provides navigation menu which you can configure through the Drupal admin user interface. More details on configuration below.
- ASU Universal Google Tag Manager. Enabled and included in your site's markup automatically without any configuration needed by you. Should you want to turn it off or wish to add an additional GTM container ID, visit Admin -&gt; Configuration -&gt; ASU Brand settings.
- ASU branded Cookie Consent for GDPR compliance. On by default. No configuration necessary.

Find more technical details about the header, GTM and cookie consent on [unity.web.asu.edu](https://unity.web.asu.edu).

Installation instructions
-------------------------

[](#installation-instructions)

The ASU Brand module installs when you create a Webspark site. If you're using this module outside of Webspark or in other situations, see the instructions below.

1. Install and enable the ASU Brand module just like any other module.
2. Go to the Admin -&gt; Structure -&gt; Blocks and place the ASU Brand header block into the header region of your site. Please note that the header supplies its own header tag, so you may need to update non-Webspark themes to ensure they do not set their own header tags. The available regions will be determined by the theme that you are using.

CAS integration
---------------

[](#cas-integration)

The default login/out paths used in the ASU Brand header assume you have the CAS single sign on module enabled. CAS should be included and installed by default in Webspark sites. If needed for implementations, install and enable the CAS module to allow users to create accounts and authenticate to your site.

Note on caching
---------------

[](#note-on-caching)

The ASU Brand header is cached for performance. When you make updates to the menu used in your header, please clear the cache to see your updates immediately. In the Drupal UI, go Admin -&gt; Configuration -&gt; Performance to clear the cache.

How to configure your header
----------------------------

[](#how-to-configure-your-header)

Webspark sites install with the ASU header enabled and placed in the site layout by default with the Main menu configured as the header menu. Should you wish to reconfigure your header, or to add an additional header to your site, such as for a subsite or microsite, navigate to Admin -&gt; Structure -&gt; Blocks and place an "ASU brand header" block into the header region of your site. Each header block you create has its own independent settings. Most sites will only ever need one.

Within the ASU brand header block settings, you may change the settings of your header, but the defaults should work for most situations.

### Columns within dropdown menus

[](#columns-within-dropdown-menus)

To create a menu column add a menu link at the second level of your menu and configure it with the "Heading - starts a column" setting in the "ASU Brand menu link type" dropdown. All menu links at the second level following that header will be in that column until the next "Heading" menu link is encountered and a new column will start.

### A note on buttons in the menu

[](#a-note-on-buttons-in-the-menu)

There are three types of buttons available in the menu.

1. Top level call to action buttons display alongside the top level menu items and are configured in the block configurations.
2. Buttons within drop down menus' columns are configured on menu link item forms using the "ASU Brand menu link type" dropdown.
3. Buttons in the tray at the bottom of drop down menus are enabled by clicking a menu link item's "Display as ASU Brand button in dropdown tray" checkbox.

For 2 and 3, enabling the button settings will transform that menu link into the corresponding button type ONLY if that menu item is in the second level of your menu. If those menu link fields are configured in non-header menus, they will be ignored.

### Header menu depth

[](#header-menu-depth)

Only header menu links at the top and second level are displayed in the header.

Other configurations
--------------------

[](#other-configurations)

Global configurations related to GTM and Cookie Consent are found at the following click path: Admin -&gt; Configuration -&gt; ASU Brand settings.

Header assets
-------------

[](#header-assets)

Previous version of the ASU Brand header loaded the header from external sources. The Webspark 2 version of the module, now ships with all header assets from the Unity Design System "components-library" header component onboard.

A note about toolbar menus
--------------------------

[](#a-note-about-toolbar-menus)

The ASU Brand header is designed to work with the Drupal core toolbar menu used to provide administrative system links. A popular Drupal module, the Admin Toolbar, which provides dropdown menus from the toolbar, is not currently supported.

Help! The header overlaps my content or UI!
-------------------------------------------

[](#help-the-header-overlaps-my-content-or-ui)

The ASU Brand header uses fixed positioning, and that can lead to issues with other fixed positioned elements in the UI. We've attempted to catch and supply CSS rules that make adjustments for those UI elements provided in Webspark. If you have customizations or added modules that are overlapped, you can use the following CSS to deliver UI adjustments:

```
body.asu-brand-header-present {
  /* Your rules here. See css/asu_brand.header.css for examples from this
     module. To see how the ASU Brand module uses Javascript to detect and
     apply necessary changes related to the header, see
     js/asu_brand.header.js */
}

```

Extending the Google Analytics dataLayer
----------------------------------------

[](#extending-the-google-analytics-datalayer)

The ASU Brand module initializes a Google Analytics dataLayer for use by frontend Unity components. The dataLayer has been implmented so that modules may take advantage of it as well using the hook\_asu\_brand\_gtm\_datalayer\_alter() hook. Please note, use of this hook to add page-based dataLayer pushes has not been tested, so it is encumbent on the developer implementing to ensure it behaves as desired and doesn't interfere with other dataLayer usage on existing pages. If you test this, we would appreciate hearing about your experience.

```
function hook_asu_brand_gtm_datalayer_alter(array &$datalayer) {
  // Set a "site" variable return.
  $datalayer['site'] = 'My Site';
}
*/

```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance92

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~10 days

Total

26

Last Release

38d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef1b4d562b29a2e31f1d7c671de1cc388b8afd25b833031f11e82f43ea82a87?d=identicon)[mlsamuel](/maintainers/mlsamuel)

![](https://www.gravatar.com/avatar/8f75e2a47756245df20e3851807bcdae3b357570e635f4a455ac863aa6ba0f3c?d=identicon)[chill5-0](/maintainers/chill5-0)

![](https://www.gravatar.com/avatar/2942d322525cdeac050d6126050d84324b4a6a8f4f04bfb3cbe02ac31f73bf4b?d=identicon)[tbutterf](/maintainers/tbutterf)

---

Top Contributors

[![tbutterf](https://avatars.githubusercontent.com/u/6109406?v=4)](https://github.com/tbutterf "tbutterf (1 commits)")

### Embed Badge

![Health badge](/badges/asuwebplatforms-asu-brand/health.svg)

```
[![Health](https://phpackages.com/badges/asuwebplatforms-asu-brand/health.svg)](https://phpackages.com/packages/asuwebplatforms-asu-brand)
```

###  Alternatives

[humanmade/hm-rewrite

HM\_Rewrite is a wrapper for the WordPress WP Rewrite system. http://hmn.md/wordpress-rewrite-rules-hm-core-style/

16115.9k](/packages/humanmade-hm-rewrite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
