MediaWiki REL1_35
|
Stable to implement. 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. | |
Stable to implement.
Definition at line 13 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.