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 
32  public function onShowSearchHitTitle( &$title, &$titleSnippet, $result, $terms,
33  $specialSearch, &$query, &$attributes
34  );
35 }
HtmlArmor
Marks HTML that shouldn't be escaped.
Definition: HtmlArmor.php:30
MediaWiki\Search\Hook\ShowSearchHitTitleHook
Stable to implement.
Definition: ShowSearchHitTitleHook.php:14
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:38
Title
Represents a title within MediaWiki.
Definition: Title.php:41
MediaWiki\Search\Hook\ShowSearchHitTitleHook\onShowSearchHitTitle
onShowSearchHitTitle(&$title, &$titleSnippet, $result, $terms, $specialSearch, &$query, &$attributes)
Use this hook to customise display of search hit title/link.