Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6093871
SpecialSearchGoResultHook.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
SpecialSearchGoResultHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SpecialSearchGoResult" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
SpecialSearchGoResultHook
{
/**
* Use this hook to alter the behaviour of the 'go' feature when searching
*
* If a hook returns false the 'go' feature will be canceled and a normal search will be
* performed. Returning true without setting $url does a standard redirect to $title.
* Setting $url redirects to the specified URL.
*
* @since 1.35
*
* @param string $term The string the user searched for
* @param Title $title The title the 'go' feature has decided to forward the user to
* @param string|null &$url Initially null, hook subscribers can set this to specify
* the final url to redirect to
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onSpecialSearchGoResult
(
$term
,
$title
,
&
$url
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 6 2026, 01:08 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d5/04/5d7f8760275e9db494b0c42960e1
Default Alt Text
SpecialSearchGoResultHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment