public function WebformHelpVideoForm::validateForm in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformHelpVideoForm.php \Drupal\webform\Form\WebformHelpVideoForm::validateForm()
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/ WebformHelpVideoForm.php, line 121
Class
- WebformHelpVideoForm
- Help video form.
Namespace
Drupal\webform\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
if ($this
->isDialog()) {
$form_state
->clearErrors();
}
else {
parent::validateForm($form, $form_state);
}
}