wiki.techinc.nl/includes/Storage/Hook/PageContentInsertCompleteHook.php
daniel 2e57447c58 Document hook names in hook interfaces.
Bug: T258665
Change-Id: Ifddbf57f8aa2e3eb0d5845601376cbafa08ed407
2020-09-27 12:03:12 +02:00

37 lines
1.1 KiB
PHP

<?php
namespace MediaWiki\Storage\Hook;
use Content;
use Revision;
use User;
use WikiPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PageContentInsertComplete" to register handlers implementing this interface.
*
* @deprecated since 1.35, use PageSaveComplete
* @ingroup Hooks
*/
interface PageContentInsertCompleteHook {
/**
* This hook is called after a new article is created.
*
* @since 1.35
*
* @param WikiPage $wikiPage WikiPage created
* @param User $user User creating the article
* @param Content $content New content
* @param string $summary Edit summary/comment
* @param bool $isMinor Whether or not the edit was marked as minor
* @param null $isWatch (No longer used)
* @param null $section (No longer used)
* @param int $flags Flags passed to WikiPage::doEditContent()
* @param Revision $revision New Revision of the article
* @return bool|void True or no return value to continue or false to abort
*/
public function onPageContentInsertComplete( $wikiPage, $user, $content,
$summary, $isMinor, $isWatch, $section, $flags, $revision
);
}