Available from version 1.18.0 (r86714, codereview)
allows passing custom data to search engine
Define function:
public static function onSpecialSearchSetupEngine( $search, $profile, $engine ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"SpecialSearchSetupEngine": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialSearchSetupEngine"
Called from: File(s): specials/SpecialSearch.php
Interface: SpecialSearchSetupEngineHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialSearchSetupEngine extensions.

Details edit

  • $search: special page object
  • $profile: String: current search profile
  • $engine: the search engine

See also edit