Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kerby70’s picture

Title: convert hook_menu() to routing system » Convert hook_menu() to routing system
Status: Active » Needs review
FileSize
3.4 KB

Attached 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.

kerby70’s picture

joachim’s picture

Should that be Form instead of From?

kerby70’s picture

nitesh624’s picture

Assigned: Unassigned » nitesh624
Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Patch applied and working fine.

truls1502’s picture

Status: Reviewed & tested by the community » Needs review

Let's set the status to NR so people look at this.

Status: Needs review » Needs work

The last submitted patch, 5: admin_menu-convert-menu-to-yml-2402185-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

truls1502’s picture

Could someone here do a reroll of #5 against 7.x-3.x-dev? :)

HongPong’s picture

Status: Needs work » Needs review

There 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.

HongPong’s picture

Botched this patch somehow :( Will try to submit another later

Status: Needs review » Needs work

The last submitted patch, 12: admin_menu-2402185-hookmenu-12.patch, failed testing. View results

nitesh624’s picture

Assigned: nitesh624 » Unassigned
thalles’s picture

Category: Bug report » Support request

This 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!

thalles’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.