Twig: embed menu

    0

    0

    Andrea Pistarini

    This code displays a menu item at the main level with 1 level of depth.

    Library: Drupal

    {# drupal_menu('machine_name', level, depth) #}
    {{ drupal_menu('main', 1, 1) }}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.