Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5969678
ShowSearchHitTitleHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ShowSearchHitTitleHook.php
View Options
<?php
namespace
MediaWiki\Search\Hook
;
use
HtmlArmor
;
use
MediaWiki\Specials\SpecialSearch
;
use
MediaWiki\Title\Title
;
use
SearchResult
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ShowSearchHitTitle" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ShowSearchHitTitleHook
{
/**
* Use this hook to customise display of search hit title/link.
*
* @since 1.35
*
* @param Title &$title Title to link to
* @param string|HtmlArmor|null &$titleSnippet Label for the link representing
* the search result. Typically the article title.
* @param SearchResult $result
* @param array $terms Array of search terms extracted by SearchDatabase search engines
* (may not be populated by other search engines)
* @param SpecialSearch $specialSearch
* @param string[] &$query Array of query string parameters for the link representing the search
* result
* @param string[] &$attributes Array of title link attributes, can be modified by extension
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onShowSearchHitTitle
(
&
$title
,
&
$titleSnippet
,
$result
,
$terms
,
$specialSearch
,
&
$query
,
&
$attributes
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 13:55 (21 h, 23 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/05/4b0255a4ee51e2a0a0cce5f82d25
Default Alt Text
ShowSearchHitTitleHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment