MediaWiki REL1_35
MediaWiki\Storage\Hook\PageContentSaveCompleteHook Interface Reference
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.
 

Detailed Description

Deprecated:
since 1.35, use PageSaveComplete

Definition at line 15 of file PageContentSaveCompleteHook.php.

Member Function Documentation

◆ onPageContentSaveComplete()

MediaWiki\Storage\Hook\PageContentSaveCompleteHook::onPageContentSaveComplete (   $wikiPage,
  $user,
  $content,
  $summary,
  $isMinor,
  $isWatch,
  $section,
  $flags,
  $revision,
  $status,
  $originalRevId,
  $undidRevId 
)

This hook is called after an article has been updated.

Since
1.35
Parameters
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
Returns
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: