public function GroupContent::getEntity in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/GroupContent.php \Drupal\group\Entity\GroupContent::getEntity()
Returns the entity that was added as group content.
Return value
\Drupal\Core\Entity\EntityInterface
Overrides GroupContentInterface::getEntity
1 call to GroupContent::getEntity()
- 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 97
Class
- GroupContent
- Defines the Group content entity.
Namespace
Drupal\group\EntityCode
public function getEntity() {
return $this->entity_id->entity;
}