MediaWiki  master
MediaWiki\SpecialPage\Hook\AuthChangeFormFieldsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\SpecialPage\Hook\AuthChangeFormFieldsHook:

Public Member Functions

 onAuthChangeFormFields ( $requests, $fieldInfo, &$formDescriptor, $action)
 This hook is called after converting a field information array obtained from a set of AuthenticationRequest classes into a form descriptor; hooks can tweak the array to change how login etc. More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file AuthChangeFormFieldsHook.php.

Member Function Documentation

◆ onAuthChangeFormFields()

MediaWiki\SpecialPage\Hook\AuthChangeFormFieldsHook::onAuthChangeFormFields (   $requests,
  $fieldInfo,
$formDescriptor,
  $action 
)

This hook is called after converting a field information array obtained from a set of AuthenticationRequest classes into a form descriptor; hooks can tweak the array to change how login etc.

forms should look.

Since
1.35
Parameters
AuthenticationRequest[]$requestsArray of AuthenticationRequests the fields are created from
array$fieldInfoField information array (union of all AuthenticationRequest::getFieldInfo() responses)
array&$formDescriptorHTMLForm descriptor. The special key 'weight' can be set to change the order of the fields.
string$actionOne of the AuthManager::ACTION_* constants
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: