MediaWiki master
MediaWiki\Hook\LoginFormValidErrorMessagesHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onLoginFormValidErrorMessages (array &$messages)
 This hook is called in LoginHelper::getValidErrorMessages before returning the list of message keys that are valid for display on Special:UserLogin or Special:CreateAccount.
 

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 LoginHelper::getValidErrorMessages before returning the list of message keys that are valid for display on Special:UserLogin or Special:CreateAccount.

This hook allows extensions to add additional error or warning messages to the array returned by LoginHelper::getValidErrorMessages.

Since
1.35
See also
LoginHelper::getValidErrorMessages for more information
Parameters
string[]&$messagesAlready added message keys (includes message keys defined by MediaWiki core)
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: