public function RegistrantsElementUtility::setRegistrants in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::setRegistrants()
- 3.x src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::setRegistrants()
Sets registrants in form state.
Parameters
\Drupal\rng\RegistrantInterface[] $registrants: An array of registrants.
2 calls to RegistrantsElementUtility::setRegistrants()
File
- src/
RegistrantsElementUtility.php, line 116
Class
Namespace
Drupal\rngCode
public function setRegistrants(array $registrants) {
$this->formState
->set(array_merge($this->element['#parents'], [
'registrants',
]), $registrants);
}