MediaWiki REL1_35
MediaWiki\Hook\TitleMoveHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\TitleMoveHook:

Public Member Functions

 onTitleMove ( $old, $nt, $user, $reason, &$status)
 This hook is called before moving an article (title).
 

Detailed Description

Stable to implement.

Definition at line 13 of file TitleMoveHook.php.

Member Function Documentation

◆ onTitleMove()

MediaWiki\Hook\TitleMoveHook::onTitleMove (   $old,
  $nt,
  $user,
  $reason,
$status 
)

This hook is called before moving an article (title).

Since
1.35
Parameters
Title$oldOld title
Title$ntNew title
User$userUser who does the move
string$reasonReason provided by the user
Status&$statusTo abort the move, add a fatal error to this object (i.e. call $status->fatal())
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: