Skip to content
Snippets Groups Projects
Commit 0351f4ca authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #164330 by Crell et al: restore menu classes.

parent a0a97f2f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1050,7 +1050,9 @@ function menu_navigation_links($menu_name, $level = 0) { ...@@ -1050,7 +1050,9 @@ function menu_navigation_links($menu_name, $level = 0) {
$l = $item['link']['options']; $l = $item['link']['options'];
$l['href'] = $item['link']['href']; $l['href'] = $item['link']['href'];
$l['title'] = $item['link']['title']; $l['title'] = $item['link']['title'];
$links[] = $l; $l['attributes']['id'] = $item['link']['mlid'];
// Keyed with unique menu id to generate classes from theme_links().
$links['menu-'. $item['link']['mlid']] = $l;
} }
} }
return $links; return $links;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment