public static function Registrants::submitChangeDefault in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Element/Registrants.php \Drupal\rng\Element\Registrants::submitChangeDefault()
- 8 src/Element/Registrants.php \Drupal\rng\Element\Registrants::submitChangeDefault()
Submission callback to change the registrant from the default people.
Parameters
array $form: The current form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Element/ Registrants.php, line 901
Class
- Registrants
- Provides a form element for a registrant and person association.
Namespace
Drupal\rng\ElementCode
public static function submitChangeDefault(array $form, FormStateInterface $form_state) {
$form_state
->setRebuild();
$element = RegistrantsElement::findElement($form, $form_state);
$utility = new RegistrantsElement($element, $form_state);
$utility
->setChangeIt(TRUE);
}