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

Public Member Functions

 onPageContentInsertComplete ( $wikiPage, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $revision)
 This hook is called after a new article is created.
 

Detailed Description

Deprecated:
since 1.35, use PageSaveComplete

Definition at line 14 of file PageContentInsertCompleteHook.php.

Member Function Documentation

◆ onPageContentInsertComplete()

MediaWiki\Storage\Hook\PageContentInsertCompleteHook::onPageContentInsertComplete (   $wikiPage,
  $user,
  $content,
  $summary,
  $isMinor,
  $isWatch,
  $section,
  $flags,
  $revision 
)

This hook is called after a new article is created.

Since
1.35
Parameters
WikiPage$wikiPageWikiPage created
User$userUser creating the article
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
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: