MediaWiki
master
ShowSearchHitTitleHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Search\Hook
;
4
5
use
MediaWiki\Specials\SpecialSearch
;
6
use
MediaWiki\Title\Title
;
7
use
SearchResult
;
8
use
Wikimedia\HtmlArmor\HtmlArmor
;
9
17
interface
ShowSearchHitTitleHook
{
35
public
function
onShowSearchHitTitle
( &$title, &$titleSnippet, $result, $terms,
36
$specialSearch, &$query, &$attributes
37
);
38
}
MediaWiki\Specials\SpecialSearch
Run text & title search and display the output.
Definition
SpecialSearch.php:47
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:69
SearchResult
An abstract base class representing a search engine result.
Definition
SearchResult.php:15
Wikimedia\HtmlArmor\HtmlArmor
Marks HTML that shouldn't be escaped.
Definition
HtmlArmor.php:18
MediaWiki\Search\Hook\ShowSearchHitTitleHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ShowSearchHitTitleHook.php:17
MediaWiki\Search\Hook\ShowSearchHitTitleHook\onShowSearchHitTitle
onShowSearchHitTitle(&$title, &$titleSnippet, $result, $terms, $specialSearch, &$query, &$attributes)
Use this hook to customise display of search hit title/link.
MediaWiki\Search\Hook
Definition
PrefixSearchBackendHook.php:3
includes
Search
Hook
ShowSearchHitTitleHook.php
Generated on Sun Nov 9 2025 03:25:50 for MediaWiki by
1.10.0