3 namespace MediaWiki\Page\Hook
;
5 use MediaWiki\Revision\RevisionRecord
;
6 use MediaWiki\User\UserIdentity
;
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
16 interface RollbackCompleteHook
{
18 * After an article rollback is completed.
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,