public function ConstraintEdit::validateForm in Password Policy 8.3
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormBase::validateForm
File
- src/
Form/ ConstraintEdit.php, line 133
Class
- ConstraintEdit
- Editing a constraint within the policy wizard form.
Namespace
Drupal\password_policy\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$instance = $form_state
->getValue('instance');
$instance
->validateConfigurationForm($form, $form_state);
}