MediaWiki REL1_39
MediaWiki\Hook\LoginFormValidErrorMessagesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\LoginFormValidErrorMessagesHook:

Public Member Functions

 onLoginFormValidErrorMessages (array &$messages)
 This hook is called in LoginForm when a function gets valid error messages.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "LoginFormValidErrorMessages" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file LoginFormValidErrorMessagesHook.php.

Member Function Documentation

◆ onLoginFormValidErrorMessages()

MediaWiki\Hook\LoginFormValidErrorMessagesHook::onLoginFormValidErrorMessages ( array & $messages)

This hook is called in LoginForm when a function gets valid error messages.

This hook allows extensions to add additional error messages (except messages already in LoginForm::$validErrorMessages).

Since
1.35
Parameters
string[]&$messagesAlready added message keys (including message keys from LoginForm::$validErrorMessages)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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