Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / includes / page / Hook / RollbackCompleteHook.php
blob577aaa82565ac068c03ae74c67dde25724aaee00
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use MediaWiki\Revision\RevisionRecord;
6 use MediaWiki\User\UserIdentity;
7 use WikiPage;
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "RollbackComplete" to register handlers implementing this interface.
13 * @deprecated since 1.36, use PageSaveComplete
14 * @ingroup Hooks
16 interface RollbackCompleteHook {
17 /**
18 * After an article rollback is completed.
20 * @since 1.35
22 * @param WikiPage $wikiPage the WikiPage that was edited
23 * @param UserIdentity $user UserIdentity for the user who did the rollback
24 * @param RevisionRecord $revision RevisionRecord for the revision the page was reverted back to
25 * @param RevisionRecord $current RevisionRecord for the reverted revision
26 * @return bool|void True or no return value to continue or false to abort
28 public function onRollbackComplete( $wikiPage, $user, $revision,
29 $current