Important admin links missing from system_get_module_admin_tasks()

Created on 27 May 2015, almost 10 years ago
Updated 19 March 2025, 18 days ago

Problem/Motivation

On #2495657: Admin links are missing from a module's help page , Help is fixed to restore the list of admin links that used to be displayed at the bottom.

In testing this on comment #3, I noticed that there were some links present in Drupal 7 that were not showing up in Drupal 8. The ones I noticed were:
- Node module: the admin/content page [pretty important!]
- Database Logging module: the top search terms report admin/reports/search

Looking at the code, it appears that the list of tasks to show is generated by a call to system_get_module_admin_tasks(), and this function is apparently not returning all the links that it should.

Proposed resolution

a) Novice task - Done, comment #3 Turn on all the Core modules in a Drupal 7 and Drupal 8 site (with the patch on #2495657: Admin links are missing from a module's help page if this is not committed yet). Survey the Help pages to figure out which links are missing, and add a comment to this issue. Another way to do this task is to compare the page admin/index in Drupal 7 and 8, and see what the differences are between the links shown for each module in the two versions.

b) Novice task - Done, comment #4 Also survey the admin pages that you see from the top toolbar (Content, Structure, etc.) and make sure that the links shown there are present on the appropriate module help pages (or on admin/index). Make a list of those that are not shown on help or admin/index.

c) Make a patch to ensure that these links are returned by system_get_module_admin_tasks() and are then shown in the appropriate help. See comment #2 for some notes on how this might be done.

Remaining tasks

The following items need to be added/removed from the Help page "admin links" lists and the "list of admin by module" (admin/index):

a) - this link is provided by system.routing.yml

b) admin/reports/search - missing in D8 - the link is provided by dblog.routing.yml

c) The admin pages listed for System module that are really just landing pages, like admin/config, admin/structure, admin/config/* -- these should not really be listed on System Help or the By Module index page at all. They don't actually let you administer anything. But we want to keep Appearance, People, and Extend, which are real pages, and make sure that the real admin pages underneath those landing pages are all listed in their appropriate module.

d) - admin/content/file is provided by file_entity module in D7

e) - see #2617262: Add permissions and roles to administration menu

f) admin/theme/udpate, admin/modules/update, admin/appearance/settings and admin/modules/uninstall - should be System module

g) - see #715972: People section(s) are very confusing

So the remaining task is to make a patch that fixes this.

User interface changes

More (or less confusing) links will be shown in the help pages and on admin/index.

API changes

None.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

system.module

Created by

🇺🇸United States jhodgdon Spokane, WA, USA

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia acbramley

    Moving to system module as node module has nothing to do with this route or the menu generation.

    I'm also not entirely sure from the IS what links need to appear where so an update there would be good.

Production build 0.71.5 2024