\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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid created an issue. See original summary.

Dave Reid’s picture

Status: Active » Needs review
FileSize
4.74 KB

  • Dave Reid committed cc0d64b on 8.x-1.x
    Issue #3095551 by Dave Reid: Added Menu helper for building menu render...
Dave Reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.