MediaWiki REL1_37
MediaWiki\Search\Hook\SearchAfterNoDirectMatchHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

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

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

Stability: stable
to implement

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