Skip to content

Commit e8e7d36

Browse files
author
ws2-release-bot
committed
Merge branch release-2.18.11 into main
1 parent 72ddf6a commit e8e7d36

128 files changed

Lines changed: 4091 additions & 5104 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"drupal/decorative_image_widget": "1.0.1",
2727
"drupal/devel": "5.4.0",
2828
"drupal/devel_kint_extras": "1.1.0",
29-
"drupal/editor_advanced_link": "2.2.4",
29+
"drupal/editor_advanced_link": "2.3.4",
3030
"drupal/editoria11y": "2.2.18",
3131
"drupal/environment_indicator": "4.0.14",
3232
"drupal/field_group": "3.6.0",

config/install/editor.editor.basic_html.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ settings:
7373
- '<div class>'
7474
editor_advanced_link_link:
7575
enabled_attributes:
76+
- aria-label
7677
- class
7778
- id
7879
- target

config/install/editor.editor.full_html.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ settings:
5757
allowed_tags: { }
5858
editor_advanced_link_link:
5959
enabled_attributes:
60+
- aria-label
6061
- class
6162
- id
6263
- target

config/install/editor.editor.minimal_format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ settings:
2828
allowed_tags: { }
2929
editor_advanced_link_link:
3030
enabled_attributes:
31+
- aria-label
3132
- class
3233
- id
3334
- target

config/install/filter.format.basic_html.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ filters:
4343
status: true
4444
weight: -50
4545
settings:
46-
allowed_html: '<br> <p class="lead"> <h1> <h2 id> <h3 id> <h4 id> <h5 id> <dl> <dt> <dd> <mark> <cite class> <blockquote cite class> <svg title role viewbox class> <path d fill> <button class="uds-tooltip"> <ol class> <drupal-media data-spacing-top data-spacing-bottom data-spacing-left data-spacing-right data-round title data-entity-type data-entity-uuid alt data-view-mode data-caption data-align> <img class src alt height width data-entity-uuid data-entity-type data-caption data-align> <ul class> <strong> <em> <a href title class id target data-entity-type data-entity-uuid data-entity-substitution role name hreflang> <li> <hr class="copy-divider"> <div class> <i class data-fa-transform> <span class data-fa-transform> <section class="simple-box"> <table> <tr rowspan colspan> <td rowspan colspan> <th rowspan colspan class="normal indent"> <thead> <tbody> <tfoot> <caption> <mark class>'
46+
allowed_html: '<br> <p class="lead"> <h1> <h2 id> <h3 id> <h4 id> <h5 id> <dl> <dt> <dd> <mark> <cite class> <blockquote cite class> <svg title role viewbox class> <path d fill> <button class="uds-tooltip"> <ol class> <drupal-media data-spacing-top data-spacing-bottom data-spacing-left data-spacing-right data-round title data-entity-type data-entity-uuid alt data-view-mode data-caption data-align> <img class src alt height width data-entity-uuid data-entity-type data-caption data-align> <ul class> <strong> <em> <a aria-label href title class id target data-entity-type data-entity-uuid data-entity-substitution role name hreflang> <li> <hr class="copy-divider"> <div class> <i class data-fa-transform> <span class data-fa-transform> <section class="simple-box"> <table> <tr rowspan colspan> <td rowspan colspan> <th rowspan colspan class="normal indent"> <thead> <tbody> <tfoot> <caption> <mark class>'
4747
filter_html_help: false
4848
filter_html_nofollow: false
4949
filter_html_escape:

config/install/filter.format.minimal_format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ filters:
1717
status: true
1818
weight: -10
1919
settings:
20-
allowed_html: '<br> <p> <h2> <h3> <h4> <h5> <h6> <strong> <em> <a href title class id target="_blank">'
20+
allowed_html: '<br> <p> <h2> <h3> <h4> <h5> <h6> <strong> <em> <a aria-label href title class id target="_blank">'
2121
filter_html_help: true
2222
filter_html_nofollow: false
2323
filter_url:

config/install/filter.format.restricted_html.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ filters:
1717
status: true
1818
weight: -10
1919
settings:
20-
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>'
20+
allowed_html: '<a aria-label href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>'
2121
filter_html_help: true
2222
filter_html_nofollow: false
2323
filter_url:

modules/asu_brand/README.md

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,84 @@
11
# ASU Brand module for Drupal
22

33
The ASU Brand module provides the following functionality:
4-
* An ASU branded, accessible, Web Standards compliant Header with integration
4+
5+
- An ASU branded, accessible, Web Standards compliant Header with integration
56
with ASU search and spplying required links. The header provides navigation
67
menu which you can configure through the Drupal admin user interface. More
78
details on configuration below.
8-
* ASU Universal Google Tag Manager. Enabled and included in your site's markup
9+
- ASU Universal Google Tag Manager. Enabled and included in your site's markup
910
automatically without any configuration needed by you. Should you want to
1011
turn it off or wish to add an additional GTM container ID, visit Admin ->
1112
Configuration -> ASU Brand settings.
12-
* ASU branded Cookie Consent for GDPR compliance. On by default. No
13+
- ASU branded Cookie Consent for GDPR compliance. On by default. No
1314
configuration necessary.
1415

15-
Find more technical details about the header, GTM and cookie consent on
16-
[unity.web.asu.edu](https://unity.web.asu.edu).
16+
Find more technical details about the header, GTM and cookie consent on [unity.web.asu.edu](https://unity.web.asu.edu).
17+
1718
## Installation instructions
19+
1820
The ASU Brand module installs when you create a Webspark site. If you're
1921
using this module outside of Webspark or in other situations, see the
2022
instructions below.
23+
2124
1. Install and enable the ASU Brand module just like any other module.
2225
2. Go to the Admin -> Structure -> Blocks and place the ASU Brand header block
2326
into the header region of your site. Please note that the header supplies
2427
its own header tag, so you may need to update non-Webspark themes to ensure
2528
they do not set their own header tags. The available regions will be
2629
determined by the theme that you are using.
30+
2731
## CAS integration
32+
2833
The default login/out paths used in the ASU Brand header assume you have the
2934
CAS single sign on module enabled. CAS should be included and installed by
3035
default in Webspark sites. If needed for implementations, install and enable
3136
the CAS module to allow users to create accounts and authenticate to your site.
37+
3238
## Note on caching
39+
3340
The ASU Brand header is cached for performance. When you make updates to the
3441
menu used in your header, please clear the cache to see your updates
3542
immediately. In the Drupal UI, go Admin -> Configuration -> Performance to
3643
clear the cache.
37-
## How to configure your header
38-
Webspark sites install with the ASU header enabled and placed in the site
39-
layout by default with the Main menu configured as the header menu. Should
40-
you wish to reconfigure your header, or to add an additional header to your
41-
site, such as for a subsite or microsite, navigate to Admin -> Structure ->
42-
Blocks and place an "ASU brand header" block into the header region of your
43-
site. Each header block you create has its own independent settings. Most sites
44-
will only ever need one.
45-
46-
Within the ASU brand header block settings, you may change the settings of your
47-
header, but the defaults should work for most situations.
48-
### Columns within dropdown menus
49-
To create a menu column add a menu link at the second level of your menu and
50-
configure it with the "Heading - starts a column" setting in the "ASU Brand
51-
menu link type" dropdown. All menu links at the second level following that
52-
header will be in that column until the next "Heading" menu link is
53-
encountered and a new column will start.
54-
### A note on buttons in the menu
55-
There are three types of buttons available in the menu.
56-
1. Top level call to action buttons display alongside the top level menu items
57-
and are configured in the block configurations.
58-
2. Buttons within drop down menus' columns are configured on menu link item
59-
forms using the "ASU Brand menu link type" dropdown.
60-
3. Buttons in the tray at the bottom of drop down menus are enabled by clicking
61-
a menu link item's "Display as ASU Brand button in dropdown tray" checkbox.
62-
63-
For 2 and 3, enabling the button settings will transform that menu link into
64-
the corresponding button type ONLY if that menu item is in the second level of
65-
your menu. If those menu link fields are configured in non-header menus, they
66-
will be ignored.
67-
### Header menu depth
68-
Only header menu links at the top and second level are displayed in the header.
44+
6945
## Other configurations
46+
7047
Global configurations related to GTM and Cookie Consent are found at the
7148
following click path: Admin -> Configuration -> ASU Brand settings.
49+
7250
## Header assets
51+
7352
Previous version of the ASU Brand header loaded the header from external
7453
sources. The Webspark 2 version of the module, now ships with all header assets
7554
from the Unity Design System "components-library" header component onboard.
55+
7656
## A note about toolbar menus
57+
7758
The ASU Brand header is designed to work with the Drupal core toolbar menu used
7859
to provide administrative system links. A popular Drupal module, the Admin
7960
Toolbar, which provides dropdown menus from the toolbar, is not currently
8061
supported.
62+
8163
## Help! The header overlaps my content or UI!
64+
8265
The ASU Brand header uses fixed positioning, and that can lead to issues with
8366
other fixed positioned elements in the UI. We've attempted to catch and supply
8467
CSS rules that make adjustments for those UI elements provided in Webspark. If
8568
you have customizations or added modules that are overlapped, you can use the
8669
following CSS to deliver UI adjustments:
8770

88-
```
71+
```css
8972
body.asu-brand-header-present {
9073
/* Your rules here. See css/asu_brand.header.css for examples from this
9174
module. To see how the ASU Brand module uses Javascript to detect and
9275
apply necessary changes related to the header, see
9376
js/asu_brand.header.js */
9477
}
9578
```
79+
9680
## Extending the Google Analytics dataLayer
81+
9782
The ASU Brand module initializes a Google Analytics dataLayer for use by
9883
frontend Unity components. The dataLayer has been implmented so that
9984
modules may take advantage of it as well using the
@@ -103,7 +88,7 @@ the developer implementing to ensure it behaves as desired and doesn't
10388
interfere with other dataLayer usage on existing pages. If you test this,
10489
we would appreciate hearing about your experience.
10590

106-
```
91+
```php
10792
function hook_asu_brand_gtm_datalayer_alter(array &$datalayer) {
10893
// Set a "site" variable return.
10994
$datalayer['site'] = 'My Site';

modules/asu_brand/asu_brand.install

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,37 @@ function asu_brand_update_9002() {
2121
$config = $config_factory->getEditable('asu_brand.settings');
2222
$config->clear('asu_brand_cookie_consent_enabled');
2323
$config->save(TRUE);
24-
}
24+
}
25+
26+
/**
27+
* Installs dropdown "Column row span" base field storage for menu link content entities.
28+
*/
29+
function asu_brand_update_9003() {
30+
$entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
31+
$field_name = 'menu_link_asu_brand_link_dropdown_row_span';
32+
$entity_type_id = 'menu_link_content';
33+
34+
// Skip if field storage already exists.
35+
if ($entity_definition_update_manager->getFieldStorageDefinition($field_name, $entity_type_id)) {
36+
return;
37+
}
38+
39+
$definition = \Drupal\Core\Field\BaseFieldDefinition::create('integer')
40+
->setLabel('Column row span')
41+
->setDescription('How many columns (max of 5) should appear in this row.')
42+
->setSettings([
43+
'min' => 1,
44+
'max' => 5,
45+
])
46+
->setSetting('unsigned', TRUE)
47+
->setSetting('size', 'tiny')
48+
->setDefaultValue(1)
49+
->setDisplayOptions('form', ['type' => 'number', 'weight' => 51]);
50+
51+
$entity_definition_update_manager->installFieldStorageDefinition(
52+
$field_name,
53+
$entity_type_id,
54+
'asu_brand',
55+
$definition
56+
);
57+
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
components-library:
2-
version: 2.18.10
2+
version: 2.18.11
33
dependencies:
44
- core/drupal
55
- core/drupalSettings
6+
- asu_react_integration/reactjs
67
js:
78
node_modules/@asu/component-header-footer/dist/asuHeaderFooter.umd.js: {}
89
js/asu_brand.header.js: {}
910
css:
1011
component:
1112
css/asu_brand.header.css: {}
1213
block__system_main_block:
13-
version: 2.18.10
14+
version: 2.18.11
1415
css:
1516
theme:
1617
css/asu-brand-edit-form.css: {}

0 commit comments

Comments
 (0)