public function QuizResultEntityForm::validateForm in Quiz 8.5
Same name and namespace in other branches
- 8.6 src/Entity/QuizResultEntityForm.php \Drupal\quiz\Entity\QuizResultEntityForm::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/
Entity/ QuizResultEntityForm.php, line 96
Class
Namespace
Drupal\quiz\EntityCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
}