Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5964230
TempUserCreatedRedirectHook.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
TempUserCreatedRedirectHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Session\Session
;
use
MediaWiki\User\UserIdentity
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "TempUserCreatedRedirect" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
TempUserCreatedRedirectHook
{
/**
* This hook is called after an action causes a temporary user to be
* created or after the first successful edit for a temporary account.
* The handler may modify the redirect URL.
*
* To differentiate between invocations of this hook where a) the account
* was created in the current request and b) the account existed, but made
* a first successful edit, one can examine the registration date of the
* account.
*
* @since 1.39
*
* @param Session $session
* @param UserIdentity $user
* @param string $returnTo The prefixed DB key of the title to redirect to
* @param string $returnToQuery An extra query part
* @param string $returnToAnchor Either an empty string or a fragment beginning with "#"
* @param string &$redirectUrl The URL to redirect to
* @return bool|null
*/
public
function
onTempUserCreatedRedirect
(
Session
$session
,
UserIdentity
$user
,
string
$returnTo
,
string
$returnToQuery
,
string
$returnToAnchor
,
&
$redirectUrl
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 10:10 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a1/87/1c33ea13e3c4161898fe63ab6920
Default Alt Text
TempUserCreatedRedirectHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment