Debian Codegraph @

includes/actions/Hook/CustomEditorHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use Article;
6 use MediaWiki\User\User;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "CustomEditor" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface CustomEditorHook {
16 /**
17 * This hook is called when invoking the page editor.
18 *
19 * @since 1.35
20 *
21 * @param Article $article Article being edited
22 * @param User $user User performing the edit
23 * @return bool|void True or no return value to allow the normal editor to be used.
24 * False if implementing a custom editor, e.g. for a special namespace, etc.
25 */
26 public function onCustomEditor( $article, $user );
27 }