Page MenuHomeWickedGov Phorge

EditFilterHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

EditFilterHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\EditPage\EditPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "EditFilter" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface EditFilterHook {
/**
* Use this hook to perform checks on an edit.
*
* @since 1.35
*
* @param EditPage $editor Edit form (see includes/EditPage.php)
* @param string $text Contents of the edit box
* @param string $section Section being edited
* @param string &$error Error message to return
* @param string $summary Edit summary for page
* @return bool|void True or no return value without altering $error to allow the
* edit to continue. Modifying $error and returning true will cause the contents
* of $error to be echoed at the top of the edit form as wikitext. Return false
* to halt editing; you'll need to handle error messages, etc. yourself.
*/
public function onEditFilter( $editor, $text, $section, &$error, $summary );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 20:32 (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/0d/4b26ee59a86afeeb9b8067f1eaf6
Default Alt Text
EditFilterHook.php (1 KB)

Event Timeline