MediaWiki  master
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Auth;
4 
12  public $reason;
13 
15 
20  public function getFieldInfo() {
21  return [
22  'reason' => [
23  'type' => 'string',
24  'label' => wfMessage( 'createacct-reason' ),
25  'help' => wfMessage( 'createacct-reason-help' ),
26  ],
27  ];
28  }
29 }
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
This is a value object for authentication requests.
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Authentication request for the reason given for account creation.
getFieldInfo()
Fetch input field info.The field info is an associative array mapping field names to info arrays....
string $reason
Account creation reason (only used when creating for someone else)