MediaWiki REL1_39
MediaWiki\Hook\SpecialSearchNogomatchHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\SpecialSearchNogomatchHook:

Public Member Functions

 onSpecialSearchNogomatch (&$title)
 This hook is called when the 'Go' feature is triggered and the target doesn't exist.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file SpecialSearchNogomatchHook.php.

Member Function Documentation

◆ onSpecialSearchNogomatch()

MediaWiki\Hook\SpecialSearchNogomatchHook::onSpecialSearchNogomatch ( & $title)

This hook is called when the 'Go' feature is triggered and the target doesn't exist.

This generally comes from autocomplete search other than the main bar on Special:Search. Full text search results are generated after this hook is called.

Since
1.35
Parameters
Title&$titleTitle object generated from the text entered by the user
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: