MediaWiki 1.39.10
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onPageContentSave ( $wikiPage, $user, $content, &$summary, $isminor, $iswatch, $section, $flags, $status) | |
This hook is called before an article is saved. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PageContentSave" to register handlers implementing this interface.
Definition at line 18 of file PageContentSaveHook.php.
MediaWiki\Storage\Hook\PageContentSaveHook::onPageContentSave | ( | $wikiPage, | |
$user, | |||
$content, | |||
& | $summary, | ||
$isminor, | |||
$iswatch, | |||
$section, | |||
$flags, | |||
$status ) |
This hook is called before an article is saved.
WikiPage | $wikiPage | WikiPage being saved |
User | $user | User saving the article |
Content | $content | New article content |
CommentStoreComment | &$summary | Edit comment. Can be replaced with a new one. |
bool | $isminor | Whether the edit was marked as minor |
null | $iswatch | Previously a watch flag. Currently unused, always null. |
null | $section | Previously the section number being edited. Currently unused, always null. |
int | $flags | All EDIT_… flags (including EDIT_MINOR) as an integer number. See WikiPage::doUserEditContent documentation for flags' definition. |
StatusValue | $status | StatusValue object for the hook handlers resulting status. Either set $status->fatal() or return false to abort the save action. |
Implemented in MediaWiki\HookContainer\HookRunner.