public function RegistrantsElementUtility::setArity in RNG - Events and Registrations 8
Set form state for for_arity.
Arity needs to persist in case the user has multiple registrants, then selects 'Single', then selects 'Change' again.
File
- src/
RegistrantsElementUtility.php, line 204
Class
Namespace
Drupal\rngCode
public function setArity($arity) {
$this->formState
->set(array_merge($this->element['#parents'], [
'for_arity',
]), $arity);
}