public function RegistrantForm::validateForm in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Form/Entity/RegistrantForm.php \Drupal\rng\Form\Entity\RegistrantForm::validateForm()
Button-level validation handlers are highly discouraged for entity forms, as they will prevent entity validation from running. If the entity is going to be saved during the form submission, this method should be manually invoked from the button-level validation handler, otherwise an exception will be thrown.
Overrides ContentEntityForm::validateForm
File
- src/
Form/ Entity/ RegistrantForm.php, line 34
Class
- RegistrantForm
- Form controller for registrants.
Namespace
Drupal\rng\Form\EntityCode
public function validateForm(array &$form, FormStateInterface $form_state) {
RegistrantFields::validateForm($form, $form_state);
return parent::validateForm($form, $form_state);
}