wiki.techinc.nl/includes/specials/Hook/SpecialSearchResultsPrependHook.php
daniel 2e57447c58 Document hook names in hook interfaces.
Bug: T258665
Change-Id: Ifddbf57f8aa2e3eb0d5845601376cbafa08ed407
2020-09-27 12:03:12 +02:00

30 lines
894 B
PHP

<?php
namespace MediaWiki\Hook;
use OutputPage;
use SpecialSearch;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SpecialSearchResultsPrepend" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface SpecialSearchResultsPrependHook {
/**
* This hook is called immediately before returning HTML on the search results page.
*
* Useful for including an external search provider.
* To disable the output of MediaWiki search output, return false.
*
* @since 1.35
*
* @param SpecialSearch $specialSearch SpecialSearch object ($this)
* @param OutputPage $output $wgOut
* @param string $term Search term specified by the user
* @return bool|void True or no return value to continue or false to abort
*/
public function onSpecialSearchResultsPrepend( $specialSearch, $output, $term );
}