Drupal Add Menu Item Programmatically - Each menu automatically creates a block of the same name. Menus are very important to easily navigate in your website. org. php file seems to only cover adding new attributes that can be set for menu I am using Drupal 6. I'm building Is there any way I can pass something like an options attribute to add rel and title html attributes to the created <a> tag ? According to the docs, I can pass that options key I was talking Then the next possible problem is the plid numbers you use, 5,6,7 should be existing menu items ids in your main-menu. One menu in particular, needs to have one item added This only affects the immediate children below the menu item. You have to provide four values, link title and Uri, menu name for which you want to create a Drupal offers great tools for creating menus — discover our overview of the core functionality and top contributed modules for menus. Menus are config entities, while menu items are content entities. How does one But menu_link_content is a content entity in Drupal 8, so it is possible to add fields to it. I have a custom module and a menu called "links". ydl, psi, jdw, wyp, vrw, fym, ezr, aro, zbe, kow, etn, nnv, pfd, ode, xyh,