Page MenuHomeWickedGov Phorge

CustomEditorHook.php
No OneTemporary

Size
701 B
Referenced Files
None
Subscribers
None

CustomEditorHook.php

<?php
namespace MediaWiki\Hook;
use Article;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "CustomEditor" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface CustomEditorHook {
/**
* This hook is called when invoking the page editor.
*
* @since 1.35
*
* @param Article $article Article being edited
* @param User $user User performing the edit
* @return bool|void True or no return value to allow the normal editor to be used.
* False if implementing a custom editor, e.g. for a special namespace, etc.
*/
public function onCustomEditor( $article, $user );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 06:03 (7 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b0/86/4e9225933ba37ab6d4b3d95f1f36
Default Alt Text
CustomEditorHook.php (701 B)

Event Timeline