Manual:Hooks/RevisionRecordInserted
RevisionRecordInserted | |
---|---|
Available from version 1.31.0 (Gerrit change 374077) Called after a revision is inserted into the database. | |
Define function: | public static function onRevisionRecordInserted( MediaWiki\Storage\RevisionRecord $revisionRecord ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"RevisionRecordInserted": "MediaWiki\\Extension\\MyExtension\\Hooks::onRevisionRecordInserted"
}
}
|
Called from: | File(s): Revision/RevisionStore.php Function(s): insertRevisionOn |
Interface: | RevisionRecordInsertedHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:RevisionRecordInserted extensions.
Details
edit- $revisionRecord: the RevisionRecord that has just been inserted.