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.
\Drupal\system\Plugin\Block\SystemMenuBlock contains some quite useful code for outputting a menu with all of its links. I think this could be copied to a Menu helper class with a buildMenu($menu_name, $level, $depth, $expand_all_items) method.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3095551-menu-helper.patch | 4.74 KB | Dave Reid |
Comments
Comment #2
Dave ReidComment #4
Dave Reid