public static function Registrants::decoyValidator in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Element/Registrants.php \Drupal\rng\Element\Registrants::decoyValidator()
- 3.x src/Element/Registrants.php \Drupal\rng\Element\Registrants::decoyValidator()
An empty form validator.
This validator is used to prevent top level form validators from running. Submission elements must have a dummy validator, not just an empty #validate property.
See \Drupal\Core\Form\FormValidator::executeValidateHandlers for the critical core operation details.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Element/ Registrants.php, line 607
Class
- Registrants
- Provides a form element for a registrant and person association.
Namespace
Drupal\rng\ElementCode
public static function decoyValidator(array &$form, FormStateInterface $form_state) {
}