MediaWiki REL1_35
MediaWiki\Hook\PageMoveCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\PageMoveCompleteHook:

Public Member Functions

 onPageMoveComplete ( $old, $new, $user, $pageid, $redirid, $reason, $revision)
 This hook is called after moving an article (title), post-commit.
 

Detailed Description

Stable to implement.

Definition at line 13 of file PageMoveCompleteHook.php.

Member Function Documentation

◆ onPageMoveComplete()

MediaWiki\Hook\PageMoveCompleteHook::onPageMoveComplete (   $old,
  $new,
  $user,
  $pageid,
  $redirid,
  $reason,
  $revision 
)

This hook is called after moving an article (title), post-commit.

Since
1.35
Parameters
LinkTarget$oldOld title
LinkTarget$newNew title
UserIdentity$userUser who did the move
int$pageidDatabase ID of the page that's been moved
int$rediridDatabase ID of the created redirect
string$reasonReason for the move
RevisionRecord$revisionRevision created by the move
Returns
bool|void True or no return value to continue or false stop other hook handlers, doesn't abort the move itself

Implemented in MediaWiki\HookContainer\HookRunner.


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