When Devel module is enabled, it's configuration page is admin/config/development/devel, and a "Devel settings" links appear on

  • The Development panel on the main configuration landing page at admin/configuration
  • The Development configuration sub-page at admin/config/development

When admin_toolbar_tools module is enabled, the "Devel settings" link disappears from these pages.

It also disappears from the drop-down menu provided by admin_toolbar, and the vertical toolbar tray provided by Core Toolbar module.

You can still access the devel settings page via the module's configure link on the admin/modules page.

It looks like admin_toolbar_tools moves the Devel settings menu link from it's original location, into the D8 icon menu.

I think it would be better if the Devel settings menu item remained in it's expected location, and an extra copy was placed in the D8 icon menu.

Comments

andrewmacpherson created an issue. See original summary.

andrewmacpherson’s picture

Title: Enabling admin_toolbar_tools causes Devel Settings to disappear form the main configuration page » Enabling admin_toolbar_tools causes Devel Settings to disappear from the main configuration page
colan’s picture

mattshoaf’s picture

I was playing around with this, thought it would be helpful to clarify that this behavior only happens when Admin Toolbar Extra Tools is enabled. Devel config stays where expected when the parent Admin Toolbar only is enabled.

In admin_toolbar_tools.module on line 368, I found where the new menu item is created:

  // If module Devel is enabled.
  if ($moduleHandler->moduleExists('devel')) {
    $links['admin_development'] = array(
      'title' => t('Development'),
      'route_name' => 'system.admin_config_development',
      'parent' => 'admin_toolbar_tools.help',
      'weight' => '-8',
    );
    $links['devel.admin_settings'] = array(
      'title' => t('Devel settings'),
      'route_name' => 'devel.admin_settings',
      'parent' => 'admin_development',
      'weight' => '-1',
    );
//...more development links
}

This is all inside function admin_toolbar_tools_menu_links_discovered_alter(&$links), which alters the link definitions, and I'm not finding how to duplicate the links instead. Easiest fix is to comment out/remove lines 375-380

    $links['devel.admin_settings'] = array(
      'title' => t('Devel settings'),
      'route_name' => 'devel.admin_settings',
      'parent' => 'admin_development',
      'weight' => '-1',
    );

Which would keep the Devel Settings on the /admin/config page. If someone can point me to how to duplicate menu items instead of altering the link definitions, I'll take a pass at this patch.

  • romainj committed 53a3c9f on 8.x-1.x
    Issue #2723209 by andrewmacpherson, colan, mattshoaf: Enabling...
romainj’s picture

Now the Admin Toolbar Extra Tools module adds those links without changing existant one. Thanks to andrewmacpherson, colan and mattshoaf.

romainj’s picture

Status: Active » Fixed
romainj’s picture

Status: Fixed » Closed (fixed)