if ( is_string( reset( $status ) ) ) {
$status = Status::newFatal( ...$status );
} elseif ( is_array( reset( $status ) ) ) {
if ( is_string( reset( $status ) ) ) {
$status = Status::newFatal( ...$status );
} elseif ( is_array( reset( $status ) ) ) {
} else {
throw new UnexpectedValueException( 'invalid HTMLForm::trySubmit() return value: '
. 'first element of array is ' . gettype( reset( $status ) ) );
} else {
throw new UnexpectedValueException( 'invalid HTMLForm::trySubmit() return value: '
. 'first element of array is ' . gettype( reset( $status ) ) );
* Generates a HTMLForm descriptor array from a set of authentication requests.
* @param AuthenticationRequest[] $requests
* @param string $action AuthManager action name (one of the AuthManager::ACTION_* constants)
* Generates a HTMLForm descriptor array from a set of authentication requests.
* @param AuthenticationRequest[] $requests
* @param string $action AuthManager action name (one of the AuthManager::ACTION_* constants)
*/
protected function getAuthFormDescriptor( $requests, $action ) {
$fieldInfo = AuthenticationRequest::mergeFieldInfo( $requests );
*/
protected function getAuthFormDescriptor( $requests, $action ) {
$fieldInfo = AuthenticationRequest::mergeFieldInfo( $requests );
/**
* Adds a sequential tabindex starting from 1 to all form elements. This way the user can
* use the tab key to traverse the form without having to step through all links and such.
/**
* Adds a sequential tabindex starting from 1 to all form elements. This way the user can
* use the tab key to traverse the form without having to step through all links and such.