You are here

public function GroupContent::getEntity in Group 8

Same name and namespace in other branches
  1. 2.0.x 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 99

Class

GroupContent
Defines the Group content entity.

Namespace

Drupal\group\Entity

Code

public function getEntity() {
  return $this->entity_id->entity;
}