MediaWiki REL1_35
MediaWiki\Hook\CustomEditorHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\CustomEditorHook:

Public Member Functions

 onCustomEditor ( $article, $user)
 This hook is called when invoking the page editor.
 

Detailed Description

Stable to implement.

Definition at line 12 of file CustomEditorHook.php.

Member Function Documentation

◆ onCustomEditor()

MediaWiki\Hook\CustomEditorHook::onCustomEditor (   $article,
  $user 
)

This hook is called when invoking the page editor.

Since
1.35
Parameters
Article$articleArticle being edited
User$userUser performing the edit
Returns
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.

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: