MediaWiki REL1_37
MediaWiki\Page\Hook\RevisionFromEditCompleteHook Interface Reference

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

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

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

Stability: stable
to implement

Definition at line 16 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: