MediaWiki  master
CustomEditorHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use Article;
6 use User;
7 
15 interface CustomEditorHook {
26  public function onCustomEditor( $article, $user );
27 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MediaWiki\Hook\CustomEditorHook\onCustomEditor
onCustomEditor( $article, $user)
This hook is called when invoking the page editor.
MediaWiki\Hook\CustomEditorHook
This is a hook handler interface, see docs/Hooks.md.
Definition: CustomEditorHook.php:15
Article
Class for viewing MediaWiki article and history.
Definition: Article.php:49
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:67