Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5977836
CustomEditorHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
716 B
Referenced Files
None
Subscribers
None
CustomEditorHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Page\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
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:07 (3 d, 9 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9c/2e/4d516d0c84e1065adc8af1472904
Default Alt Text
CustomEditorHook.php (716 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment