|
MediaWiki REL1_35
|
Stable to implement. 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. | |
Stable to implement.
Definition at line 9 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.