You are here

public function RegistrantsElementUtility::addRegistrant in RNG - Events and Registrations 3.x

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

File

src/RegistrantsElementUtility.php, line 91

Class

RegistrantsElementUtility

Namespace

Drupal\rng

Code

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