Closed sammarks closed 9 years ago
Turns out we've been doing the menu class wrong the whole time - Drupal already has support for secondary menu links!
We actually already have something similar implemented. Just use Menu::current_section_mlid() to get the MLID of the current section, and then get the links that are underneath it.
Menu::current_section_mlid()
Turns out we've been doing the menu class wrong the whole time - Drupal already has support for secondary menu links!