wiki.techinc.nl/includes/Hook/TitleMoveCompletingHook.php
DannyS712 1594282ad0 Replace TitleMoveCompleting and TitleMoveComplete hooks
Bug: T250023
Change-Id: Iceb0aebb51769c413bf560d1c5b70a7213cb8b91
2020-06-10 20:03:31 +00:00

31 lines
817 B
PHP

<?php
namespace MediaWiki\Hook;
use Revision;
use Title;
use User;
/**
* @deprecated since 1.35, use the PageMoveComplete hook instead
* @ingroup Hooks
*/
interface TitleMoveCompletingHook {
/**
* This hook is called after moving an article (title), pre-commit.
*
* @since 1.35
*
* @param Title $old Old title
* @param Title $nt New title
* @param User $user User who did the move
* @param int $pageid Database ID of the page that's been moved
* @param int $redirid Database ID of the created redirect
* @param string $reason Reason for the move
* @param Revision $revision Revision created by the move
* @return bool|void True or no return value to continue or false to abort
*/
public function onTitleMoveCompleting( $old, $nt, $user, $pageid, $redirid,
$reason, $revision
);
}