Page MenuHomeWickedGov Phorge

AuthChangeFormFieldsHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

AuthChangeFormFieldsHook.php

<?php
namespace MediaWiki\SpecialPage\Hook;
use MediaWiki\Auth\AuthenticationRequest;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "AuthChangeFormFields" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface AuthChangeFormFieldsHook {
/**
* 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
*
* @param AuthenticationRequest[] $requests Array of AuthenticationRequests the fields
* are created from
* @param array $fieldInfo Field information array (union of all
* AuthenticationRequest::getFieldInfo() responses)
* @param array &$formDescriptor HTMLForm descriptor. The special key 'weight' can be set
* to change the order of the fields.
* @param string $action One of the AuthManager::ACTION_* constants
* @return bool|void True or no return value to continue or false to abort
*/
public function onAuthChangeFormFields( $requests, $fieldInfo,
&$formDescriptor, $action
);
}

File Metadata

Mime Type
text/x-php
Expires
Aug 14 2026, 00:02 (16 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/5e/a011161f59d83a2f11de324014c8
Default Alt Text
AuthChangeFormFieldsHook.php (1 KB)

Event Timeline