You are here

public function RegistrantsElementUtility::addRegistrant in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::addRegistrant()
  2. 3.x src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::addRegistrant()

File

src/RegistrantsElementUtility.php, line 83

Class

RegistrantsElementUtility

Namespace

Drupal\rng

Code

public function addRegistrant(RegistrantInterface $registrant) {
  $registrants = $this
    ->getRegistrants();
  $registrants[] = $registrant;
  $this
    ->setRegistrants($registrants);
}