MediaWiki  master
Page\Hook\NewRevisionFromEditCompleteHook Interface Reference

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

Inheritance diagram for Page\Hook\NewRevisionFromEditCompleteHook:

Public Member Functions

 onNewRevisionFromEditComplete ( $wikiPage, $rev, $originalRevId, $user, &$tags)
 This hook is called when a revision was inserted due to an edit, file upload, import or page move. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

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

Deprecated:
since 1.35, use the RevisionFromEditComplete hook instead

Definition at line 16 of file NewRevisionFromEditCompleteHook.php.

Member Function Documentation

◆ onNewRevisionFromEditComplete()

Page\Hook\NewRevisionFromEditCompleteHook::onNewRevisionFromEditComplete (   $wikiPage,
  $rev,
  $originalRevId,
  $user,
$tags 
)

This hook is called when a revision was inserted due to an edit, file upload, import or page move.

Since
1.35
Parameters
WikiPage$wikiPageWikiPage edited
Revision$revNew revision
int | bool$originalRevIdIf the edit restores or repeats an earlier revision (such as a rollback or a null revision), the ID of that earlier revision. False otherwise. (Used to be called $baseID.)
User$userEditing user
array&$tagsTags to apply to the edit and recent change. This is empty, and replacement is ignored, in the case of import or page move.
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: