DrupalX

Extension
Framework

max

Chainable

Chainable

You can use the max method if you only want to render the menu tree up to a specific depth level:

<nav role="navigation menu">
  <h1>Menu</h1>
  {{ Menu::load("main").max(4) }}
</nav>