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