Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#4 | Fix-for-Menu-Links-Default-2244523.patch | 1.72 KB | manuelbg |
Comments
Comment #1
dawehnerPerfect!
Comment #2
pcambraThanks for the patch and the review, but seems that when I apply it, the links of the menus are gone:
http://monosnap.com/image/OIN4IIPAQmJr8RFnosdJte77Y0bdIs
Comment #3
BerdirI also noticed that this seems to duplicate menu links when you do menu link rebuilds, I have 20+ Generate Content links now ;)
Comment #4
manuelbg CreditAttribution: manuelbg commentedFollowing the Change Records of Drupal 8, i found a fix for this issue: hook_menu_link_defaults() moved to *.menu_links.yml files.
Comment #5
manuelbg CreditAttribution: manuelbg commentedCan someone review the last patch?
Thanks.
Comment #6
pcambraLast patch is not taking devel generate into account
Comment #7
juampynr CreditAttribution: juampynr commentedThe patch sent by @jibran is OK but the issue of menu links being duplicated is currently in core. More details can be found at #2258299: dblog_menu_link_defaults_alter() must set 'machine_name' to avoid duplicates.
Setting this issue on hold until the above gets solved.
Comment #9
juampynr CreditAttribution: juampynr commentedCommitted. Thanks everyone!
Comment #13
pcambra