MediaWiki  master
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. More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file EditFilterHook.php.

Member Function Documentation

◆ onEditFilter()

MediaWiki\Hook\EditFilterHook::onEditFilter (   $editor,
  $text,
  $section,
$error,
  $summary 
)

Use this hook to perform checks on an edit.

Since
1.35
Parameters
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
Returns
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: