MediaWiki  master
MediaWiki\Search\Hook\SearchGetNearMatchHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 11 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: