From c28506abb2d998e4170e2062b7bf17bded803f68 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 30 Oct 2024 10:15:04 -0700 Subject: [PATCH 01/41] Close #3842 Content editors can now upload and use webp images with their content. (#3843) --- config/install/field.field.user.user.user_picture.yml | 2 +- .../az_core/config/install/linkit.linkit_profile.az_linkit.yml | 2 +- .../install/field.field.media.az_image.field_media_az_image.yml | 2 +- themes/custom/az_barrio/theme-settings.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/install/field.field.user.user.user_picture.yml b/config/install/field.field.user.user.user_picture.yml index e06bd7d74d..104bf139ba 100644 --- a/config/install/field.field.user.user.user_picture.yml +++ b/config/install/field.field.user.user.user_picture.yml @@ -17,7 +17,7 @@ translatable: true default_value: { } default_value_callback: '' settings: - file_extensions: 'png gif jpg jpeg' + file_extensions: 'png gif jpg jpeg webp' file_directory: 'pictures/[date:custom:Y]-[date:custom:m]' max_filesize: '' alt_field: false diff --git a/modules/custom/az_core/config/install/linkit.linkit_profile.az_linkit.yml b/modules/custom/az_core/config/install/linkit.linkit_profile.az_linkit.yml index d7d68a38cd..5fe22447ef 100644 --- a/modules/custom/az_core/config/install/linkit.linkit_profile.az_linkit.yml +++ b/modules/custom/az_core/config/install/linkit.linkit_profile.az_linkit.yml @@ -36,7 +36,7 @@ matchers: group_by_bundle: null substitution_type: file limit: 100 - file_extensions: 'pdf doc docx pps ppt xlsx xls png jpg jpeg' + file_extensions: 'pdf doc docx pps ppt xlsx xls png jpg jpeg webp' file_status: 1 images: show_dimensions: false diff --git a/modules/custom/az_media/config/install/field.field.media.az_image.field_media_az_image.yml b/modules/custom/az_media/config/install/field.field.media.az_image.field_media_az_image.yml index 9f57327855..b7e9966eb6 100644 --- a/modules/custom/az_media/config/install/field.field.media.az_image.field_media_az_image.yml +++ b/modules/custom/az_media/config/install/field.field.media.az_image.field_media_az_image.yml @@ -23,7 +23,7 @@ settings: handler: 'default:file' handler_settings: { } file_directory: '[date:custom:Y]-[date:custom:m]' - file_extensions: 'png gif jpg jpeg' + file_extensions: 'png gif jpg jpeg webp' max_filesize: '' max_resolution: '' min_resolution: '' diff --git a/themes/custom/az_barrio/theme-settings.php b/themes/custom/az_barrio/theme-settings.php index 1674b6310e..ef9d7a2723 100644 --- a/themes/custom/az_barrio/theme-settings.php +++ b/themes/custom/az_barrio/theme-settings.php @@ -383,7 +383,7 @@ function az_barrio_form_system_theme_settings_alter(&$form, FormStateInterface $ '#description' => t("If you don't have direct file access to the server, use this field to upload your footer logo."), '#upload_validators' => [ 'FileExtension' => [ - 'extensions' => 'png gif jpg jpeg apng svg', + 'extensions' => 'png gif jpg jpeg apng svg webp', ], ], ]; From 1eccee414c40c3ffb18702449d24a7db78cf8bb0 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 30 Oct 2024 10:28:27 -0700 Subject: [PATCH 02/41] Close #1479 exclude Drupal 6 migrations from appearing when running drush migrate:status (#3840) Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com> --- modules/custom/az_migration/az_migration.module | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/custom/az_migration/az_migration.module diff --git a/modules/custom/az_migration/az_migration.module b/modules/custom/az_migration/az_migration.module new file mode 100644 index 0000000000..57c096a085 --- /dev/null +++ b/modules/custom/az_migration/az_migration.module @@ -0,0 +1,16 @@ + Date: Wed, 30 Oct 2024 10:32:54 -0700 Subject: [PATCH 03/41] Close #3199 Add "Make Latest" input to create release github actions workflow. (#3841) --- .github/workflows/create-release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index f586cc40ec..529f1d7c6c 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -10,6 +10,11 @@ on: required: false default: false type: boolean + make_latest: + description: Should this be made the latest release? + required: false + default: false + type: boolean jobs: build: name: Upload Release Asset @@ -56,10 +61,12 @@ jobs: tag_name: ${{ github.event.inputs.version }} name: ${{ github.event.inputs.version }} draft: false + make_latest: ${{ github.event.inputs.make_latest }} prerelease: ${{ github.event.inputs.pre_release }} files: | ./az_quickstart.zip ./az_quickstart.tar.gz + - name: Remove version from info file run: | git config user.name github-actions @@ -83,4 +90,4 @@ jobs: token: ${{ secrets.REPO_DISPATCH_TOKEN }} repository: ${{ matrix.repo }} event-type: az_quickstart_release - client-payload: '{"version": "${{ github.event.inputs.version }}"}' + client-payload: '{"version": "${{ github.event.inputs.version }}", "make_latest": "${{ github.event.inputs.make_latest }}"}' From 82d999d8b3f6c00990b4380e85341db0a32071de Mon Sep 17 00:00:00 2001 From: tadean <51835841+tadean@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:39:52 -0700 Subject: [PATCH 04/41] Fixes #3852 Citation Style Group Rendering (#3853) --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 267dd40908..416dc07887 100644 --- a/composer.json +++ b/composer.json @@ -215,6 +215,9 @@ }, "renanbr/bibtex-parser": { "Parser performance issue": "https://gist.githubusercontent.com/tadean/39b90d00cd3edfff7c5653f907e15721/raw/8feb59cb4447b0f667fe5f4936a25c4d30211e1b/renanbr_bibtex_parser_performance.patch" + }, + "seboettg/citeproc-php": { + "Group/label test chain issue (158)": "https://gist.githubusercontent.com/tadean/1d43d4bdf46d3157c50755621391c1df/raw/e5aa9846c1c2002dbd163d0a9dcbe7d462da8f19/issue_3852.patch" } }, "drupal-scaffold": { From 906fe145924fd5b5271b80016b2f101e6fdeb54a Mon Sep 17 00:00:00 2001 From: Chris Green Date: Fri, 1 Nov 2024 11:27:53 -0700 Subject: [PATCH 05/41] Close #3813 set default format to plain_text in flexible page summary field migration. (#3815) --- .../migrations/az_node_flexible_page.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/custom/az_migration/migrations/az_node_flexible_page.yml b/modules/custom/az_migration/migrations/az_node_flexible_page.yml index 4ba246e938..cd85a27a49 100644 --- a/modules/custom/az_migration/migrations/az_node_flexible_page.yml +++ b/modules/custom/az_migration/migrations/az_node_flexible_page.yml @@ -34,8 +34,17 @@ process: source: field_uaqs_summary process: delta: delta - value: value - format: format + value: + - + plugin: callback + callable: strip_tags + source: value + - + plugin: callback + callable: html_entity_decode + format: + plugin: default_value + default_value: plain_text field_az_media_image: plugin: sub_process From 9266c5166517a2e2e343d846d406c17ddae0f27a Mon Sep 17 00:00:00 2001 From: Dana Hertzberg <59745109+danahertzberg@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:43:31 -0500 Subject: [PATCH 06/41] Closes #3228: Change featured image to thumbnail image in Marketing Cloud layouts (#3847) --- modules/custom/az_marketing_cloud/az_marketing_cloud.module | 5 ++++- ..._display.node.az_news.az_marketing_cloud_30_70_layout.yml | 4 ++-- ..._display.node.az_news.az_marketing_cloud_50_50_layout.yml | 4 ++-- ...e.az_news.az_marketing_cloud_50_50_layout_image_right.yml | 4 ++-- ...e.az_news.az_marketing_cloud_70_30_layout_image_right.yml | 4 ++-- ...w_display.node.az_news.az_marketing_cloud_hero_layout.yml | 4 ++-- 6 files changed, 14 insertions(+), 11 deletions(-) diff --git a/modules/custom/az_marketing_cloud/az_marketing_cloud.module b/modules/custom/az_marketing_cloud/az_marketing_cloud.module index b4084a75e0..a1bdf8c41b 100644 --- a/modules/custom/az_marketing_cloud/az_marketing_cloud.module +++ b/modules/custom/az_marketing_cloud/az_marketing_cloud.module @@ -138,7 +138,10 @@ function az_marketing_cloud_preprocess_node__view__az_marketing_cloud(&$variable $az_canonical_absolute_url = $az_canonical_url_object->setAbsolute()->toString(); $variables['az_canonical_url'] = $az_canonical_absolute_url; $variables['az_canonical_summary_link_title'] = $token_service->replace('[node:az-canonical-summary-link-title]', ['node' => $node], [], $bubbleable_metadata); - $media = $node->field_az_media_image->entity ?? NULL; + $media = $node->field_az_media_thumbnail_image->entity ?? NULL; + if (empty($media)) { + $media = $node->field_az_media_image->entity ?? NULL; + } $file = $media->field_media_az_image->entity ?? NULL; if (!empty($file)) { $uri = $file->getFileUri(); diff --git a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_30_70_layout.yml b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_30_70_layout.yml index f1ec3d99b9..a4cff1b8e0 100644 --- a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_30_70_layout.yml +++ b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_30_70_layout.yml @@ -49,7 +49,7 @@ content: third_party_settings: { } weight: 3 region: content - field_az_media_image: + field_az_media_thumbnail_image: type: entity_reference_label label: hidden settings: @@ -78,7 +78,7 @@ hidden: field_az_expiration_date: true field_az_featured_image_as_thumb: true field_az_main_content: true - field_az_media_thumbnail_image: true + field_az_media_image: true field_az_metatag: true field_az_news_tags: true field_az_published: true diff --git a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout.yml b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout.yml index db60f1310b..051b0a265e 100644 --- a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout.yml +++ b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout.yml @@ -49,7 +49,7 @@ content: third_party_settings: { } weight: 3 region: content - field_az_media_image: + field_az_media_thumbnail_image: type: entity_reference_label label: hidden settings: @@ -78,7 +78,7 @@ hidden: field_az_expiration_date: true field_az_featured_image_as_thumb: true field_az_main_content: true - field_az_media_thumbnail_image: true + field_az_media_image: true field_az_metatag: true field_az_news_tags: true field_az_published: true diff --git a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout_image_right.yml b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout_image_right.yml index 1627f74c07..f5c2f57a67 100644 --- a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout_image_right.yml +++ b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_50_50_layout_image_right.yml @@ -49,7 +49,7 @@ content: third_party_settings: { } weight: 3 region: content - field_az_media_image: + field_az_media_thumbnail_image: type: entity_reference_label label: hidden settings: @@ -78,7 +78,7 @@ hidden: field_az_expiration_date: true field_az_featured_image_as_thumb: true field_az_main_content: true - field_az_media_thumbnail_image: true + field_az_media_image: true field_az_metatag: true field_az_news_tags: true field_az_published: true diff --git a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_70_30_layout_image_right.yml b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_70_30_layout_image_right.yml index 684e3fc2dd..253dac5c63 100644 --- a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_70_30_layout_image_right.yml +++ b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_70_30_layout_image_right.yml @@ -49,7 +49,7 @@ content: third_party_settings: { } weight: 3 region: content - field_az_media_image: + field_az_media_thumbnail_image: type: entity_reference_label label: hidden settings: @@ -78,7 +78,7 @@ hidden: field_az_expiration_date: true field_az_featured_image_as_thumb: true field_az_main_content: true - field_az_media_thumbnail_image: true + field_az_media_image: true field_az_metatag: true field_az_news_tags: true field_az_published: true diff --git a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_hero_layout.yml b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_hero_layout.yml index d6a67abcd3..53b26f630c 100644 --- a/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_hero_layout.yml +++ b/modules/custom/az_marketing_cloud/config/install/core.entity_view_display.node.az_news.az_marketing_cloud_hero_layout.yml @@ -49,7 +49,7 @@ content: third_party_settings: { } weight: 3 region: content - field_az_media_image: + field_az_media_thumbnail_image: type: entity_reference_label label: hidden settings: @@ -78,7 +78,7 @@ hidden: field_az_expiration_date: true field_az_featured_image_as_thumb: true field_az_main_content: true - field_az_media_thumbnail_image: true + field_az_media_image: true field_az_metatag: true field_az_news_tags: true field_az_published: true From 26e686d42ffa4c264988e21239b2890a5e9c4890 Mon Sep 17 00:00:00 2001 From: Ryan Dool Date: Wed, 6 Nov 2024 15:34:31 -0500 Subject: [PATCH 07/41] Closes #1273 Closes #3848: Allow multiple select menus on the same page (#1387) Co-authored-by: Dana Hertzberg Co-authored-by: Chris Green Co-authored-by: Joe Parsons Co-authored-by: Troy Dean --- .../az_select_menu/js/az-select-menu.es6.js | 78 ++++++++++--------- .../az_select_menu/js/az-select-menu.js | 78 ++++++++++--------- .../src/Plugin/Block/AzSelectMenu.php | 10 ++- .../templates/az-select-menu.html.twig | 2 +- 4 files changed, 87 insertions(+), 81 deletions(-) diff --git a/modules/custom/az_select_menu/js/az-select-menu.es6.js b/modules/custom/az_select_menu/js/az-select-menu.es6.js index 3fb537097c..b866de0607 100644 --- a/modules/custom/az_select_menu/js/az-select-menu.es6.js +++ b/modules/custom/az_select_menu/js/az-select-menu.es6.js @@ -8,45 +8,47 @@ attach(context, settings) { // az_select_menu form id's are added in an array depending // on the page you are on, and how many select menus are on the page. - for (let i = 0; i < settings.azSelectMenu.ids.length; i++) { - const selectFormId = settings.azSelectMenu.ids[i]; - const selectForm = document.querySelector(`#${selectFormId}`); - once('azSelectMenu', selectForm, context).forEach((element) => { - $(element).popover(); - element.addEventListener('focus', (event) => { - Drupal.azSelectMenu.handleEvents(event); + Object.keys(settings.azSelectMenu.ids).forEach(function (property) { + if (settings.azSelectMenu.ids.hasOwnProperty(property)) { + const selectFormId = settings.azSelectMenu.ids[property]; + const selectForm = document.querySelector(`#${selectFormId}`); + once('azSelectMenu', selectForm, context).forEach((element) => { + $(element).popover(); + element.addEventListener('focus', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + element.addEventListener('change', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + element.addEventListener('mouseenter', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + const button = element.querySelector('button'); + button.addEventListener('click', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('touchstart', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('mouseenter', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('mouseleave', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('focus', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('blur', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + document.addEventListener('touchstart', (event) => { + Drupal.azSelectMenu.handleEvents(event); + }); + element.classList.add('processed'); }); - element.addEventListener('change', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - element.addEventListener('mouseenter', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - const button = element.querySelector('button'); - button.addEventListener('click', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('touchstart', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('mouseenter', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('mouseleave', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('focus', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('blur', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - document.addEventListener('touchstart', (event) => { - Drupal.azSelectMenu.handleEvents(event); - }); - element.classList.add('processed'); - }); - } + } + }); }, }; diff --git a/modules/custom/az_select_menu/js/az-select-menu.js b/modules/custom/az_select_menu/js/az-select-menu.js index 84b48f8447..bb7c4f948c 100644 --- a/modules/custom/az_select_menu/js/az-select-menu.js +++ b/modules/custom/az_select_menu/js/az-select-menu.js @@ -14,45 +14,47 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } Drupal.azSelectMenu = Drupal.azSelectMenu || {}; Drupal.behaviors.azSelectMenu = { attach: function attach(context, settings) { - for (var i = 0; i < settings.azSelectMenu.ids.length; i++) { - var selectFormId = settings.azSelectMenu.ids[i]; - var selectForm = document.querySelector("#".concat(selectFormId)); - once('azSelectMenu', selectForm, context).forEach(function (element) { - $(element).popover(); - element.addEventListener('focus', function (event) { - Drupal.azSelectMenu.handleEvents(event); + Object.keys(settings.azSelectMenu.ids).forEach(function (property) { + if (settings.azSelectMenu.ids.hasOwnProperty(property)) { + var selectFormId = settings.azSelectMenu.ids[property]; + var selectForm = document.querySelector("#".concat(selectFormId)); + once('azSelectMenu', selectForm, context).forEach(function (element) { + $(element).popover(); + element.addEventListener('focus', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + element.addEventListener('change', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + element.addEventListener('mouseenter', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + var button = element.querySelector('button'); + button.addEventListener('click', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('touchstart', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('mouseenter', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('mouseleave', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('focus', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + button.addEventListener('blur', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + document.addEventListener('touchstart', function (event) { + Drupal.azSelectMenu.handleEvents(event); + }); + element.classList.add('processed'); }); - element.addEventListener('change', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - element.addEventListener('mouseenter', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - var button = element.querySelector('button'); - button.addEventListener('click', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('touchstart', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('mouseenter', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('mouseleave', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('focus', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - button.addEventListener('blur', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - document.addEventListener('touchstart', function (event) { - Drupal.azSelectMenu.handleEvents(event); - }); - element.classList.add('processed'); - }); - } + } + }); } }; Drupal.azSelectMenu.handleEvents = function (event) { diff --git a/modules/custom/az_select_menu/src/Plugin/Block/AzSelectMenu.php b/modules/custom/az_select_menu/src/Plugin/Block/AzSelectMenu.php index cc1950c03f..13992c6a9d 100644 --- a/modules/custom/az_select_menu/src/Plugin/Block/AzSelectMenu.php +++ b/modules/custom/az_select_menu/src/Plugin/Block/AzSelectMenu.php @@ -2,6 +2,7 @@ namespace Drupal\az_select_menu\Plugin\Block; +use Drupal\Component\Utility\Html; use Drupal\Core\Block\Attribute\Block; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\StringTranslation\TranslatableMarkup; @@ -129,9 +130,10 @@ public function blockSubmit($form, FormStateInterface $form_state) { public function build() { $build = parent::build(); + $menu_name = Html::getUniqueId('az-' . $build['#menu_name']); $form_attributes = new Attribute([ - 'id' => 'az-select-menu-' . $build['#menu_name'] . '-form', + 'id' => $menu_name . '-form', 'data-toggle' => 'popover', 'data-trigger' => 'focus', 'data-placement' => 'top', @@ -141,7 +143,7 @@ public function build() { $build['#form_attributes'] = $form_attributes; $select_attributes = new Attribute([ - 'id' => 'az-select-menu-' . $build['#menu_name'] . '-select', + 'id' => $menu_name . '-select', 'class' => [ 'form-control', 'select-primary', @@ -152,7 +154,7 @@ public function build() { $build['#select_attributes'] = $select_attributes; $button_attributes = new Attribute([ - 'id' => 'az-select-menu-' . $build['#menu_name'] . '-button', + 'id' => $menu_name . '-button', 'class' => [ 'btn', 'btn-primary', @@ -168,7 +170,7 @@ public function build() { $build['#button_attributes'] = $button_attributes; $build['#attached']['library'][] = 'az_select_menu/az_select_menu'; - $build['#attached']['drupalSettings']['azSelectMenu']['ids'][] = 'az-select-menu-' . $build['#menu_name'] . '-form'; + $build['#attached']['drupalSettings']['azSelectMenu']['ids'][$menu_name] = $menu_name . '-form'; return $build; } diff --git a/modules/custom/az_select_menu/templates/az-select-menu.html.twig b/modules/custom/az_select_menu/templates/az-select-menu.html.twig index 881f090eab..c966f24967 100644 --- a/modules/custom/az_select_menu/templates/az-select-menu.html.twig +++ b/modules/custom/az_select_menu/templates/az-select-menu.html.twig @@ -54,7 +54,7 @@
{{menu_block_configuration.az_select_menu.preform_text}}
{% endif %} - + {% import _self as menus %} {% if items %}