You are here

public static function WebformValidateConstraint::validate in Webform Validation 8

Same name and namespace in other branches
  1. 2.0.x src/Validate/WebformValidateConstraint.php \Drupal\webform_validation\Validate\WebformValidateConstraint::validate()

Validates form.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $formState: The form state.

File

src/Validate/WebformValidateConstraint.php, line 56

Class

WebformValidateConstraint
Form API callback. Validate element value.

Namespace

Drupal\webform_validation\Validate

Code

public static function validate(array &$form, FormStateInterface $formState) : void {
  self::validateElements($form['elements'], $form, $formState);
}