You are here

public function Group::getDependentGroups in RNG - Events and Registrations 3.x

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

Get required groups.

Groups required for this group to be added to a registration.

Return value

\Drupal\rng\Entity\GroupInterface[] Groups required for this group.

Overrides GroupInterface::getDependentGroups

File

src/Entity/Group.php, line 103

Class

Group
Defines the application group entity class.

Namespace

Drupal\rng\Entity

Code

public function getDependentGroups() {
  return $this->groups_dependent
    ->referencedEntities();
}