This bundle provides menu management functionality for Symfony-based applications.
- Register menu:
# config/packages/darvin_menu.yaml
darvin_menu:
menus:
header: ~
- Render menu:
{{ render_esi(controller('darvin_menu.controller.menu', {
'buildOptions': {'menu': 'header', 'depth': 2},
'renderOptions': {'template': 'menu/header.html.twig'},
})) }}