public function GroupContent::getGroup in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/GroupContent.php \Drupal\group\Entity\GroupContent::getGroup()
Returns the group the group content belongs to.
Return value
\Drupal\group\Entity\GroupInterface
Overrides GroupContentInterface::getGroup
1 call to GroupContent::getGroup()
- GroupContent::postSave in src/
Entity/ GroupContent.php - Acts on a saved entity before the insert or update hook is invoked.
File
- src/
Entity/ GroupContent.php, line 92
Class
- GroupContent
- Defines the Group content entity.
Namespace
Drupal\group\EntityCode
public function getGroup() {
return $this->gid->entity;
}