MediaWiki REL1_35
MediaWiki\Page\Hook\RevisionFromEditCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\RevisionFromEditCompleteHook:

Public Member Functions

 onRevisionFromEditComplete ( $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

Stable to implement.

Definition at line 13 of file RevisionFromEditCompleteHook.php.

Member Function Documentation

◆ onRevisionFromEditComplete()

MediaWiki\Page\Hook\RevisionFromEditCompleteHook::onRevisionFromEditComplete (   $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
RevisionRecord$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.)
UserIdentity$userEditing user
string[]&$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: