Add a Menu Item for Drupal 8, Drupal 9

Last updated February 26, 2021
Module Development8.9.x/9.0.x

In this tutorial we will learn how to add items to the menu system from within a custom Drupal module. We will also look at the options available for configuring our new menu item. Lastly, we'll learn about using hook_menu_links_discovered_alter() that can be used to add new menu items, or alter the behavior of existing ones.