Debian Codegraph @

includes/specials/Hook/LoginFormValidErrorMessagesHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "LoginFormValidErrorMessages" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface LoginFormValidErrorMessagesHook {
13 /**
14 * This hook is called in LoginForm when a function gets valid error messages.
15 *
16 * This hook allows extensions to add additional error messages (except messages already
17 * in LoginForm::$validErrorMessages).
18 *
19 * @since 1.35
20 *
21 * @param string[] &$messages Already added message keys (including message
22 * keys from LoginForm::$validErrorMessages)
23 * @return bool|void True or no return value to continue or false to abort
24 */
25 public function onLoginFormValidErrorMessages( array &$messages );
26 }