MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onEditFilter ( $editor, $text, $section, &$error, $summary) | |
Use this hook to perform checks on an edit. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "EditFilter" to register handlers implementing this interface.
Definition at line 14 of file EditFilterHook.php.
MediaWiki\Hook\EditFilterHook::onEditFilter | ( | $editor, | |
$text, | |||
$section, | |||
& | $error, | ||
$summary ) |
Use this hook to perform checks on an edit.
EditPage | $editor | Edit form (see includes/EditPage.php) |
string | $text | Contents of the edit box |
string | $section | Section being edited |
string | &$error | Error message to return |
string | $summary | Edit summary for page |
Implemented in MediaWiki\HookContainer\HookRunner.