You are here

public function Group::isUserGenerated in RNG - Events and Registrations 8.2

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

Determine if a module created the group.

Return value

bool Whether the group is user created.

Overrides GroupInterface::isUserGenerated

File

src/Entity/Group.php, line 67

Class

Group
Defines the application group entity class.

Namespace

Drupal\rng\Entity

Code

public function isUserGenerated() {
  return $this
    ->getSource() === NULL;
}