MediaWiki
master
ShowSearchHitHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Search\Hook
;
4
5
use
MediaWiki\Specials\SpecialSearch
;
6
use
SearchResult
;
7
15
interface
ShowSearchHitHook
{
37
public
function
onShowSearchHit
( $searchPage, $result, $terms, &$link,
38
&$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html
39
);
40
}
MediaWiki\Specials\SpecialSearch
Run text & title search and display the output.
Definition
SpecialSearch.php:62
SearchResult
NOTE: this class is being refactored into an abstract base class.
Definition
SearchResult.php:40
MediaWiki\Search\Hook\ShowSearchHitHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ShowSearchHitHook.php:15
MediaWiki\Search\Hook\ShowSearchHitHook\onShowSearchHit
onShowSearchHit( $searchPage, $result, $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html)
Use this hook to customize display of search hit.
MediaWiki\Search\Hook
Definition
PrefixSearchBackendHook.php:3
includes
search
Hook
ShowSearchHitHook.php
Generated on Fri Apr 25 2025 14:27:03 for MediaWiki by
1.10.0