ParsoidParser: Record ParserOptions watcher on ParserOutput object
[mediawiki.git] / includes / Hook / PageMoveCompletingHook.php
blob830a7b0ad346931e540ca19fca7b9086d013f60c
1 <?php
3 namespace MediaWiki\Hook;
5 use MediaWiki\Linker\LinkTarget;
6 use MediaWiki\Revision\RevisionRecord;
7 use MediaWiki\User\UserIdentity;
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "PageMoveCompleting" to register handlers implementing this interface.
13 * @stable to implement
14 * @ingroup Hooks
16 interface PageMoveCompletingHook {
17 /**
18 * This hook is called after moving an article (title), pre-commit
20 * @since 1.35
22 * @param LinkTarget $old Old title
23 * @param LinkTarget $new New title
24 * @param UserIdentity $user User who did the move
25 * @param int $pageid Database ID of the page that's been moved
26 * @param int $redirid Database ID of the created redirect
27 * @param string $reason Reason for the move
28 * @param RevisionRecord $revision RevisionRecord created by the move
29 * @return bool|void True or no return value to continue or false stop other hook handlers,
30 * doesn't abort the move itself
32 public function onPageMoveCompleting( $old, $new, $user, $pageid, $redirid,
33 $reason, $revision