MediaWiki REL1_35
MediaWiki\Search\Hook\SearchAfterNoDirectMatchHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Search\Hook\SearchAfterNoDirectMatchHook:

Public Member Functions

 onSearchAfterNoDirectMatch ( $term, &$title)
 This hook is called if there was no match for the exact result.
 

Detailed Description

Stable to implement.

Definition at line 11 of file SearchAfterNoDirectMatchHook.php.

Member Function Documentation

◆ onSearchAfterNoDirectMatch()

MediaWiki\Search\Hook\SearchAfterNoDirectMatchHook::onSearchAfterNoDirectMatch (   $term,
$title 
)

This hook is called if there was no match for the exact result.

This runs before lettercase variants are attempted, whereas 'SearchGetNearMatch' runs after.

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: