Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have added this code:
$cls = strip_tags($output);
$cls = str_replace(' ','-',strtolower($cls));
$element['#attributes']['class'][] = $cls;
to the menu-link.func.php file so that my menu items have a class relating to the link, very useful, could we add this in? Happy to make patch?
Comments
Comment #1
markhalliwellhttps://drupal.org/project/menu_attributes