You are here

public static function Registrants::decoyValidator in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Element/Registrants.php \Drupal\rng\Element\Registrants::decoyValidator()
  2. 8 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 683

Class

Registrants
Provides a form element for a registrant and person association.

Namespace

Drupal\rng\Element

Code

public static function decoyValidator(array &$form, FormStateInterface $form_state) {
}