MediaWiki REL1_39
MediaWiki\Page\Hook\RollbackCompleteHook Interface Reference

This is a hook handler interface, see docs/ More...

Inheritance diagram for MediaWiki\Page\Hook\RollbackCompleteHook:

Public Member Functions

 onRollbackComplete ( $wikiPage, $user, $revision, $current)
 After an article rollback is completed.

Detailed Description

This is a hook handler interface, see docs/

Use the hook name "RollbackComplete" to register handlers implementing this interface.

since 1.36, use PageSaveComplete

Definition at line 16 of file RollbackCompleteHook.php.

Member Function Documentation

◆ onRollbackComplete()

MediaWiki\Page\Hook\RollbackCompleteHook::onRollbackComplete ( $wikiPage,
$current )

After an article rollback is completed.

WikiPage$wikiPagethe WikiPage that was edited
UserIdentity$userUserIdentity for the user who did the rollback
RevisionRecord$revisionRevisionRecord for the revision the page was reverted back to
RevisionRecord$currentRevisionRecord for the reverted revision
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.

The documentation for this interface was generated from the following file: