Page MenuHomeWickedGov Phorge

PrefixSearchBackendHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

PrefixSearchBackendHook.php

<?php
namespace MediaWiki\Search\Hook;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PrefixSearchBackend" to register handlers implementing this interface.
*
* @deprecated since 1.27. Override SearchEngine::completionSearchBackend instead. Emitting warnings since 1.41.
* @ingroup Hooks
*/
interface PrefixSearchBackendHook {
/**
* Use this hook to override the title prefix search used for OpenSearch and
* AJAX search suggestions. Put results into &$results outparam and return false.
*
* @since 1.35
*
* @param int[] $ns Array of int namespace keys to search in
* @param string $search Search term (not guaranteed to be conveniently normalized)
* @param int $limit Maximum number of results to return
* @param string[] &$results Out param: array of page names
* @param int $offset Number of results to offset from the beginning
* @return bool|void True or no return value to continue or false to abort
*/
public function onPrefixSearchBackend( $ns, $search, $limit, &$results,
$offset
);
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 20:03 (7 w, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
46/73/484dfdd38a0e35d6ee513b1069d2
Default Alt Text
PrefixSearchBackendHook.php (1 KB)

Event Timeline