Comparison of Menu API in Drupal 7 and 8
Drupal 7 menu system compared to Drupal 8.
Providing module-defined menu links
Defining menu links in a custom module using the module.links.menu.yml file.
Providing module-defined local tasks
Local tasks are a Drupal system to render route-specific links (eg tasks, commands or actions), usually rendered as menu tabs.
Providing module-defined local actions
Local actions have also been moved out of the hook_menu() system in Drupal 8 and are very similar to local tasks. Use actions to define
Providing module-defined contextual links
Contextual links have also been moved out of the hook_menu() system in Drupal 8 and are very similar to local tasks.
User stories for Drupal's menu API
Adapted from [#2351379]. Here are various user stories for the menu API and how they fare against the plan at [#2407505].
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.