wiki.techinc.nl/includes/Hook/TitleMoveCompleteHook.php
daniel 2e57447c58 Document hook names in hook interfaces.
Bug: T258665
Change-Id: Ifddbf57f8aa2e3eb0d5845601376cbafa08ed407
2020-09-27 12:03:12 +02:00

34 lines
964 B
PHP

<?php
namespace MediaWiki\Hook;
use Revision;
use Title;
use User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "TitleMoveComplete" to register handlers implementing this interface.
*
* @deprecated since 1.35, use the PageMoveComplete hook instead
* @ingroup Hooks
*/
interface TitleMoveCompleteHook {
/**
* This hook is called after moving an article (title), post-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 onTitleMoveComplete( $old, $nt, $user, $pageid, $redirid,
$reason, $revision
);
}