You are here

public function Registration::getGroups in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getGroups()
  2. 3.x src/Entity/Registration.php \Drupal\rng\Entity\Registration::getGroups()

Get groups for the registration.

Return value

\Drupal\rng\Entity\GroupInterface[] An array of registration_group entities.

Overrides RegistrationInterface::getGroups

1 call to Registration::getGroups()
Registration::addGroup in src/Entity/Registration.php
Add a group to the registration.

File

src/Entity/Registration.php, line 256

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function getGroups() {
  return $this->groups
    ->referencedEntities();
}