MediaWiki REL1_35
MediaWiki\Hook\EditFilterHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\EditFilterHook:

Public Member Functions

 onEditFilter ( $editor, $text, $section, &$error, $summary)
 Use this hook to perform checks on an edit.

Detailed Description

Stable to implement.

Definition at line 11 of file EditFilterHook.php.

Member Function Documentation

◆ onEditFilter()

MediaWiki\Hook\EditFilterHook::onEditFilter (   $editor,

Use this hook to perform checks on an edit.

EditPage$editorEdit form (see includes/EditPage.php)
string$textContents of the edit box
string$sectionSection being edited
string&$errorError message to return
string$summaryEdit summary for page
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: