public function FormAlter::formAlter in Form mode manager 8.2
Same name in this branch
- 8.2 src/FormAlter.php \Drupal\form_mode_manager\FormAlter::formAlter()
- 8.2 modules/form_mode_user_roles_assign/src/FormAlter.php \Drupal\form_mode_user_roles_assign\FormAlter::formAlter()
Allow to use user_registrationpassword form_alter with FormModeManager.
This is an alter hook bridge.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $formState: The current state of the form.
string $formId: The Form ID.
See also
File
- src/
FormAlter.php, line 81
Class
- FormAlter
- Manipulates Form Alter information.
Namespace
Drupal\form_mode_managerCode
public function formAlter(array &$form, FormStateInterface $formState, $formId) {
if (!$this
->candidateToAlterForm()) {
return;
}
$this
->userRegistrationPasswordFormAlter($form, $formState, $formId);
}