Menu suggestions per region don't work

Created on 26 June 2023, over 1 year ago
Updated 17 September 2024, 3 months ago

Problem/Motivation

Using Drupal 10.0.9, menu suggestions per region do not work.

In the menu alter hook, the region is determined by `$variables['attributes']['region']`. However, this seems to be always empty.

Steps to reproduce

1. Place the Primary Menu block in the Header region
2. Add `menu--main--header.html.twig` to your theme
3. Clear cache
4. Notice that the template is not recognized

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡­πŸ‡°Hong Kong phparkle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024