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.
Our hook_menu() needs to be converted to the routing system.
Comment | File | Size | Author |
---|---|---|---|
#12 | admin_menu-2402185-hookmenu-12.patch | 4.14 KB | HongPong |
#5 | admin_menu-convert-menu-to-yml-2402185-5.patch | 3.39 KB | kerby70 |
#2 | interdiff-2402185-1-2.txt | 986 bytes | kerby70 |
#2 | admin_menu-convert-menu-to-yml-2402185-2.patch | 3.39 KB | kerby70 |
Comments
Comment #1
kerby70 CreditAttribution: kerby70 at Blink Reaction (now part of FFW) commentedAttached is a patch converting the hook_menu items to routes and menu links for two.
Three of these call functions that need to be implemented in the new form or controller classes. I had to take the liberty of naming them AdminMenuController and AdminMenuConfigForm and assuming the method names for the controller.
I am going to take a look to see if there is a task for the controller and form next.
Comment #2
kerby70 CreditAttribution: kerby70 at Blink Reaction (now part of FFW) commentedUpdates based on #2012194: system_settings_form() removed in drupal 8 https://www.drupal.org/node/2012194#comment-9694189 settings change.
Comment #3
kerby70 CreditAttribution: kerby70 at Blink Reaction (now part of FFW) commentedComment #4
joachim CreditAttribution: joachim commentedShould that be Form instead of From?
Comment #5
kerby70 CreditAttribution: kerby70 at Blink Reaction (now part of FFW) commentedYes that should be form not from.
Attached fixed.
Comment #6
nitesh624Comment #7
Anonymous (not verified) CreditAttribution: Anonymous at Websolutions Agency commentedPatch applied and working fine.
Comment #8
truls1502Let's set the status to NR so people look at this.
Comment #10
truls1502Could someone here do a reroll of #5 against 7.x-3.x-dev? :)
Comment #11
HongPong CreditAttribution: HongPong at kor group commentedThere should be a newline at end of file admin_menu.routing.yml .
This applies cleanly to the current head. Apart from fixing the newline i think this is probably good to apply at least to get us in the right direction.
I fixed some double newlines on other files as well as the missing newline.
Comment #12
HongPong CreditAttribution: HongPong at kor group commentedBotched this patch somehow :( Will try to submit another later
Comment #14
nitesh624Comment #15
thallesThis module has been deprecated for Drupal 8.
For Drupal 8: the Admin Toolbar provides an experience similar to admin_menu with the core toolbar.
Thanks @all!
Comment #16
thalles