MediaWiki master
MediaWiki\Storage\Hook\PageSaveCompleteHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onPageSaveComplete ( $wikiPage, $user, $summary, $flags, $revisionRecord, $editResult)
 This hook is called after an article has been updated.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 17 of file PageSaveCompleteHook.php.

Member Function Documentation

◆ onPageSaveComplete()

MediaWiki\Storage\Hook\PageSaveCompleteHook::onPageSaveComplete ( $wikiPage,
$user,
$summary,
$flags,
$revisionRecord,
$editResult )

This hook is called after an article has been updated.

Since
1.35
Parameters
WikiPage$wikiPageWikiPage modified
UserIdentity$userUser performing the modification
string$summaryEdit summary/comment
int$flagsFlags passed to WikiPage::doUserEditContent()
RevisionRecord$revisionRecordNew RevisionRecord of the article
EditResult$editResultObject storing information about the effects of this edit, including which edits were reverted and which edit is this based on (for reverts and null edits).
Returns
bool|void True or no return value to continue or false to stop other hook handlers from being called; save cannot be aborted

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: