MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onEditFilterMergedContent (IContextSource $context, Content $content, Status $status, $summary, User $user, $minoredit) | |
Use this hook for a post-section-merge edit filter. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "EditFilterMergedContent" to register handlers implementing this interface.
Definition at line 17 of file EditFilterMergedContentHook.php.
MediaWiki\Hook\EditFilterMergedContentHook::onEditFilterMergedContent | ( | IContextSource | $context, |
Content | $content, | ||
Status | $status, | ||
$summary, | |||
User | $user, | ||
$minoredit ) |
Use this hook for a post-section-merge edit filter.
This may be triggered by the EditPage or any other facility that modifies page content. Use the return value to indicate whether the edit should be allowed, and use the $status object to provide a reason for disallowing it. $status->apiHookResult can be set to an array to be returned by api.php action=edit. This is used to deliver captchas.
IContextSource | $context | |
Content | $content | Content of the edit box |
Status | $status | Status object to represent errors, etc. |
string | $summary | Edit summary for page |
User | $user | User whois performing the edit |
bool | $minoredit | Whether the edit was marked as minor by the user. |