MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "RevisionFromEditComplete" to register handlers implementing this interface.
Definition at line 16 of file RevisionFromEditCompleteHook.php.
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.
WikiPage | $wikiPage | WikiPage edited |
RevisionRecord | $rev | New revision |
int | bool | $originalRevId | If 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 | $user | Editing user |
string[] | &$tags | Tags to apply to the edit and recent change. This is empty, and replacement is ignored, in the case of import or page move. |
Implemented in MediaWiki\HookContainer\HookRunner.