Needs review
Project:
Drupal core
Version:
main
Component:
search.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Aug 2026 at 10:16 UTC
Updated:
12 Aug 2026 at 04:26 UTC
Jump to comment: Most recent, Most recent file
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.