MediaWiki  master
MediaWiki\Storage\Hook\PageContentSaveCompleteHook Interface Reference

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

Inheritance diagram for MediaWiki\Storage\Hook\PageContentSaveCompleteHook:

Public Member Functions

 onPageContentSaveComplete ( $wikiPage, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $revision, $status, $originalRevId, $undidRevId)
 This hook is called after an article has been updated. More...

Detailed Description

This is a hook handler interface, see docs/

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

since 1.35, use PageSaveComplete

Definition at line 18 of file PageContentSaveCompleteHook.php.

Member Function Documentation

◆ onPageContentSaveComplete()

MediaWiki\Storage\Hook\PageContentSaveCompleteHook::onPageContentSaveComplete (   $wikiPage,

This hook is called after an article has been updated.

WikiPage$wikiPageWikiPage modified
User$userUser performing the modification
Content$contentNew content
string$summaryEdit summary/comment
bool$isMinorWhether or not the edit was marked as minor
null$isWatch(No longer used)
null$section(No longer used)
int$flagsFlags passed to WikiPage::doEditContent()
Revision$revisionNew Revision of the article
Status$statusStatus object about to be returned by doEditContent(). Since MediaWiki 1.32, replacing the Status object by assigning through the reference has had no effect.
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 $baseRevId.)
int$undidRevIdRev ID (or 0) this edit undid
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: