MediaWiki
master
CustomEditorHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Actions\Hook
;
4
5
use
MediaWiki\Page\Article
;
6
use
MediaWiki\User\User
;
7
15
interface
CustomEditorHook
{
26
public
function
onCustomEditor
( $article, $user );
27
}
28
30
class_alias( CustomEditorHook::class,
'MediaWiki\\Hook\\CustomEditorHook'
);
MediaWiki\Page\Article
Legacy class representing an editable page and handling UI for some page actions.
Definition
Article.php:65
MediaWiki\User\User
User class for the MediaWiki software.
Definition
User.php:130
MediaWiki\Actions\Hook\CustomEditorHook
This is a hook handler interface, see docs/Hooks.md.
Definition
CustomEditorHook.php:15
MediaWiki\Actions\Hook\CustomEditorHook\onCustomEditor
onCustomEditor( $article, $user)
This hook is called when invoking the page editor.
MediaWiki\Actions\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
Actions
Hook
CustomEditorHook.php
Generated on Fri Apr 17 2026 08:23:37 for MediaWiki by
1.10.0