MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onPrefixSearchBackend ( $ns, $search, $limit, &$results, $offset) | |
Use this hook to override the title prefix search used for OpenSearch and AJAX search suggestions. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PrefixSearchBackend" to register handlers implementing this interface.
Definition at line 12 of file PrefixSearchBackendHook.php.
MediaWiki\Search\Hook\PrefixSearchBackendHook::onPrefixSearchBackend | ( | $ns, | |
$search, | |||
$limit, | |||
& | $results, | ||
$offset ) |
Use this hook to override the title prefix search used for OpenSearch and AJAX search suggestions.
Put results into &$results outparam and return false.
int[] | $ns | Array of int namespace keys to search in |
string | $search | Search term (not guaranteed to be conveniently normalized) |
int | $limit | Maximum number of results to return |
string[] | &$results | Out param: array of page names |
int | $offset | Number of results to offset from the beginning |
Implemented in MediaWiki\HookContainer\HookRunner.