MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onPrefixSearchExtractNamespace (&$namespaces, &$search) | |
This hook is called if core was not able to extract a namespace from the search string so that extensions can attempt it. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PrefixSearchExtractNamespace" to register handlers implementing this interface.
Definition at line 12 of file PrefixSearchExtractNamespaceHook.php.
MediaWiki\Search\Hook\PrefixSearchExtractNamespaceHook::onPrefixSearchExtractNamespace | ( | & | $namespaces, |
& | $search ) |
This hook is called if core was not able to extract a namespace from the search string so that extensions can attempt it.
int[] | &$namespaces | Array of int namespace keys to search in (change this if you can extract namespaces) |
string | &$search | Search term (replace this with term without the namespace if you can extract one) |
Implemented in MediaWiki\HookContainer\HookRunner.