MediaWiki REL1_35
MediaWiki\Storage\Hook\PageContentSaveHook Interface Reference
Inheritance diagram for MediaWiki\Storage\Hook\PageContentSaveHook:

Public Member Functions

 onPageContentSave ( $wikiPage, $user, $content, &$summary, $isminor, $iswatch, $section, $flags, $status)
 This hook is called before an article is saved.
 

Detailed Description

Deprecated:
since 1.35 Use MultiContentSave instead

Definition at line 16 of file PageContentSaveHook.php.

Member Function Documentation

◆ onPageContentSave()

MediaWiki\Storage\Hook\PageContentSaveHook::onPageContentSave (   $wikiPage,
  $user,
  $content,
$summary,
  $isminor,
  $iswatch,
  $section,
  $flags,
  $status 
)

This hook is called before an article is saved.

Since
1.35
Parameters
WikiPage$wikiPageWikiPage being saved
User$userUser saving the article
Content$contentNew article content
CommentStoreComment&$summaryEdit comment. Can be replaced with a new one.
bool$isminorWhether the edit was marked as minor
null$iswatchPreviously a watch flag. Currently unused, always null.
null$sectionPreviously the section number being edited. Currently unused, always null.
int$flagsAll EDIT_… flags (including EDIT_MINOR) as an integer number. See WikiPage::doEditContent documentation for flags' definition.
StatusValue$statusStatusValue object for the hook handlers resulting status. Either set $status->fatal() or return false to abort the save action.
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: