MediaWiki
master
ShowSearchHitTitleHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Search\Hook
;
4
5
use
HtmlArmor
;
6
use
MediaWiki\Specials\SpecialSearch
;
7
use
MediaWiki\Title\Title
;
8
use
SearchResult
;
9
17
interface
ShowSearchHitTitleHook
{
35
public
function
onShowSearchHitTitle
( &$title, &$titleSnippet, $result, $terms,
36
$specialSearch, &$query, &$attributes
37
);
38
}
HtmlArmor
Marks HTML that shouldn't be escaped.
Definition
HtmlArmor.php:30
MediaWiki\Specials\SpecialSearch
Run text & title search and display the output.
Definition
SpecialSearch.php:62
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
SearchResult
NOTE: this class is being refactored into an abstract base class.
Definition
SearchResult.php:40
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 Thu Jan 23 2025 14:25:08 for MediaWiki by
1.10.0