Problem/Motivation
Search is being removed from core. #3581109: Move HelpSearch to Search sub-module moved the search plugin but not the help text about how it should be configured.
Steps to reproduce
Proposed resolution
Move the help text about help search to search_help module.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
LLM disclosure
LLM was used to identify this remaining bit and to create the MR. It is human reviewed and adjusted though.
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | Screenshot 2026-08-20 at 07.09.27.png | 722.25 KB | gábor hojtsy |
| #22 | Screenshot 2026-08-20 at 07.09.59.png | 682.57 KB | gábor hojtsy |
Issue fork drupal-3614983
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:
- 3614983-move-help-text
changes, plain diff MR !16562
Comments
Comment #3
gábor hojtsyComment #4
gábor hojtsyComment #5
gábor hojtsyComment #6
gábor hojtsyComment #7
smustgrave commentedChanges LGTM but appears to have phpcs/phpstan issues.
https://git.drupalcode.org/project/drupal/-/jobs/11356995
https://git.drupalcode.org/project/drupal/-/jobs/11356994
Comment #9
sjpagan commentedPHPCS was just indentation in the switch block. PHPStan was three missing imports: RouteMatchInterface, Url and StringTranslationTrait. Both jobs pass now on pipeline 913692, along with everything else.
Ran the tests locally on the same commit: search_help gives 3 tests / 109 assertions, help gives 27 tests / 11633 assertions.
I also checked hook_help output on a real site. Without search_help installed, the text about configuring help search isn't there; with it installed, search_help provides it. The help module output is identical either way.
Two Functional Javascript jobs failed on the first run and passed on retry. One of them was the console error already tracked in #3472624.
Comment #10
sjpagan commentedComment #11
gábor hojtsyEven though its my issue, I think @sjpagan contributed significant enough (including manual testing) that I am safe to RTBC :) Also in reference to @smustgrave liking it in #7.
Comment #12
larowlanComments on the MR, unfortunately it doesn't work
Comment #13
sjpagan commented@larowlan Applied your suggestion. RemoveHook alone leaves the help module without a hook_help implementation, so /admin/help/help returns 404. The method also needs #[Hook('help', module: 'help')]: it replaces HelpHooks::help(), calls it, and appends the section on help.page.help.
Comment #14
gábor hojtsyGood find! Configuring help search is now visible (tried with current tugboat preview). I think its a pain that it needs to be done this way but if we want to match this instead of removing, it needs to be done :) The search field already shows up once this module is enabled too. I think this is RTBC though if we want to keep this bit of help instead of removing it.
Comment #15
larowlanAre we happy with the order change? In HEAD Configuring search pages is the last section, in the screenshot in #14 it is now first?
Comment #16
larowlanWait that's a different screenshot, testing on tugboat instead
Comment #17
larowlanConfirming the order and appearance is correct, screenshot
Comment #18
larowlanLeft a comment on the test
Comment #19
sjpagan commentedComment #21
quietone commentedI'd like to avoid a functional test with only 1 assertion so I merged the two test methods into one and then the setUp function could be removed. I also tweak the addition of the new section so that it is in the same data list. This avoid a blank line before 'Configuring help search' as in the below screenshot.
Comment #22
gábor hojtsyLooks good to me in code. Also manually tried in the tugboat preview and the help text did not show without Search Help:
It did show when I installed Search Help:
Thanks folks for resolving the outstanding concerns, I think this is good to go :)
Comment #25
catchThis is a bit more complicated than I'd expect but I see why... Committed/pushed to main and 11.x, thanks!