What problem does it solve?
Managing Drupal menus and their associated links (menu definitions, local tasks, actions, and contextual links) is often scattered across YAML files and custom code, leading to maintenance overhead and inconsistency.
Core Features & Use Cases
- Define navigation via YAML files: links.menu.yml, links.task.yml, links.action.yml, and contextual links.
- Programmatic menu tree loading, rendering, and alteration using Drupal's MenuTree API.
- Extend with dynamic MenuLinkDefault plugins and hook-based alterations to adjust menu structures at runtime.
- Programmatic manipulation of menus for custom modules and admin interfaces.
Quick Start
Create a module and declare its menus with my_module.links.menu.yml, my_module.links.task.yml, my_module.links.action.yml, and contextual.yml, then load and render the menu tree programmatically.