Problem/Motivation
drupal_core plugin is used to show modules provided by Drupal core. But it is also showing Standard profile in the list.
Steps to reproduce
Search Standard on /admin/modules/browse/drupal_core
Proposed resolution
Filter only modules for this plugin.
How to manually test
If you enable the "core modules" source and browse it, you should not see the current install profile (probably "Standard") amongst the results, and should not find it if you search for it. On 2.0.x HEAD, you will be able to see/find it.
Issue fork project_browser-3504781
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
phenaproximaJust to be clear, the "flaw" here is actually in core -- the current profile is always included in the output of ModuleExtensionList. See https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co... for where that happens.
Probably the correct solution here is for the plugin to inject the
install_profilecontainer parameter and, if it's set (it might not be, since profiles are uninstallable now), actively remove it from the found projects.Comment #4
phenaproximaCould use review; I did a bit of clean-up in the code while I was at it. Will also need a test.
Comment #6
phenaproximaThat looks great! A couple of minor points.
Comment #7
phenaproximaFixed PHPCS and switched back to the Testing profile, we don't need to use Standard for this.
Comment #8
phenaproximaComment #11
chrisfromredfinsomeone filed this a long time ago and closed with CNR - glad we found it again and fixed it