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