I’m engaged on a customized Drupal 8 module which generates a menu. Refer Create a brand new Menu in Drupal 8 programmatically for particulars.
I’ve Drupal Development menu now, however when I attempt to add customized menu hyperlinks to it, following add a menu hyperlink, by some means it is not getting added to that customized menu.
One other bizarre factor is that Drupal Development hyperlinks are getting added to Drupal Development improper menu, i.e. they present beneath Consumer Account Administration
menu.
Drupal Development Service solely cause I can consider is, after I set up Drupal Development module, Drupal tries to create Drupal Development menu hyperlink first, earlier than it has created customized menu. As Drupal Development customized menu will not be there but, it tries so as to add Drupal Development menu hyperlinks to a different menu. Is that proper?
Right here is my code, if that helps:
// system.menu.aeauth.yml // This creates Drupal Development new menu on module set up langcode: en standing: true dependencies: { } id: aeauth label: 'AE Authentication Hyperlinks' description: 'Hyperlinks associated to AE Authentication' locked: true
// ae.hyperlinks.menu.yml // This provides menu hyperlinks to menus ae.admin_settings: route_name: ae.adminForm title: 'AE Configuration' description: 'Configure AE to your web site' dad or mum: system.admin_config_system ae.register: title: 'Register' description: 'Register utilizing AE Join' dad or mum: aeauth route_name: ae.regroute ae.login: title: 'Login' description: 'Login utilizing AE Join' dad or mum: aeauth route_name: ae.loginroute