Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4197067
TitleMoveHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
874 B
Referenced Files
None
Subscribers
None
TitleMoveHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Status\Status
;
use
MediaWiki\Title\Title
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "TitleMove" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
TitleMoveHook
{
/**
* This hook is called before moving an article (title).
*
* @since 1.35
*
* @param Title $old Old title
* @param Title $nt New title
* @param User $user User who does the move
* @param string $reason Reason provided by the user
* @param Status &$status To abort the move, add a fatal error to this object
* (i.e. call $status->fatal())
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onTitleMove
(
Title
$old
,
Title
$nt
,
User
$user
,
$reason
,
Status
&
$status
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 20 2026, 21:17 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6e/cf/a86fcb7dc0cfcf26df0f98f5fa75
Default Alt Text
TitleMoveHook.php (874 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment