You are here

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

RegistrantsElementUtility

Namespace

Drupal\rng

Code

public function setArity($arity) {
  $this->formState
    ->set(array_merge($this->element['#parents'], [
    'for_arity',
  ]), $arity);
}