MediaWiki REL1_35
MediaWiki\Page\Hook\NewRevisionFromEditCompleteHook Interface Reference
Inheritance diagram for MediaWiki\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.
 

Detailed Description

Deprecated:
since 1.35, use the RevisionFromEditComplete hook instead

Definition at line 13 of file NewRevisionFromEditCompleteHook.php.

Member Function Documentation

◆ onNewRevisionFromEditComplete()

MediaWiki\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: