public function RegistrantsElementUtility::addRegistrant in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::addRegistrant()
- 3.x src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::addRegistrant()
File
- src/
RegistrantsElementUtility.php, line 91
Class
Namespace
Drupal\rngCode
public function addRegistrant(RegistrantInterface $registrant) {
$registrants = $this
->getRegistrants();
$registrants[] = $registrant;
$this
->setRegistrants($registrants);
}