MediaWiki REL1_40
MediaWiki\Hook\PageMoveCompleteHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "PageMoveComplete" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 16 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$revisionRevisionRecord 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: