Add additional theme suggestions for "menu" hook

Created on 28 February 2020, about 5 years ago
Updated 18 February 2025, about 2 months ago

Menu hook currently does not provide a suggestion per node bundle or a predefined default.
Additionally, I reorder the suggestion elements that are displayed in the specificity order they should be.
This is done, by letting $suggestions[] = 'menu__' . $menu_name; be the last element added to that array.
This solves issues that arise with https://www.drupal.org/project/drupal/issues/2752443 πŸ› Incorrect order and duplicate theme hook suggestions Needs work .

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bernardm28 Tennessee

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024