MediaWiki  master
MediaWiki\Search\Hook\SearchGetNearMatchHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Search\Hook\SearchGetNearMatchHook:

Public Member Functions

 onSearchGetNearMatch ( $term, &$title)
 Use this hook to perform exact-title-matches in "go" searches if nothing was found. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "SearchGetNearMatch" to register handlers implementing this interface.

Stable to implement

Definition at line 14 of file SearchGetNearMatchHook.php.

Member Function Documentation

◆ onSearchGetNearMatch()

MediaWiki\Search\Hook\SearchGetNearMatchHook::onSearchGetNearMatch (   $term,
$title 
)

Use this hook to perform exact-title-matches in "go" searches if nothing was found.

Since
1.35
Parameters
string$termSearch term
Title&$titleOutparam; set to $title object and return false for a match
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: