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
SearchResult
;
7
use
SpecialSearch
;
8
use
Title
;
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\Search\Hook\ShowSearchHitTitleHook
This is a hook handler interface, see docs/Hooks.md.
Definition:
ShowSearchHitTitleHook.php:17
MediaWiki\Search\Hook
Definition:
PrefixSearchBackendHook.php:3
SearchResult
NOTE: this class is being refactored into an abstract base class.
Definition:
SearchResult.php:38
$title
$title
Definition:
testCompression.php:38
SpecialSearch
implements Special:Search - Run text & title search and display the output
Definition:
SpecialSearch.php:42
Title
Represents a title within MediaWiki.
Definition:
Title.php:46
MediaWiki\Search\Hook\ShowSearchHitTitleHook\onShowSearchHitTitle
onShowSearchHitTitle(&$title, &$titleSnippet, $result, $terms, $specialSearch, &$query, &$attributes)
Use this hook to customise display of search hit title/link.
includes
search
Hook
ShowSearchHitTitleHook.php
Generated on Sat Jan 23 2021 11:09:26 for MediaWiki by
1.8.19