MediaWiki  master
MediaWiki\Hook\PageMoveCompletingHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\PageMoveCompletingHook:

Public Member Functions

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

Detailed Description

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

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

Stable to implement

Definition at line 16 of file PageMoveCompletingHook.php.

Member Function Documentation

◆ onPageMoveCompleting()

MediaWiki\Hook\PageMoveCompletingHook::onPageMoveCompleting (   $old,
  $new,
  $user,
  $pageid,
  $redirid,
  $reason,
  $revision 
)

This hook is called after moving an article (title), pre-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: