MediaWiki REL1_37
MediaWiki\Page\Hook\RollbackCompleteHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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/Hooks.md.

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

Deprecated:
since 1.36, use PageSaveComplete

Definition at line 16 of file RollbackCompleteHook.php.

Member Function Documentation

◆ onRollbackComplete()

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

After an article rollback is completed.

Since
1.35
Parameters
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
Returns
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: