Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 501 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 501 Bytes

Menu bundle

This bundle provides menu management functionality for Symfony-based applications.

Usage

  1. Register menu:
# config/packages/darvin_menu.yaml
darvin_menu:
    menus:
        header: ~
  1. Render menu:
{{ render_esi(controller('darvin_menu.controller.menu', {
    'buildOptions':  {'menu': 'header', 'depth': 2},
    'renderOptions': {'template': 'menu/header.html.twig'},
})) }}

Extras