You are here

public function Group::getGroupType in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Group.php \Drupal\group\Entity\Group::getGroupType()

Returns the group type entity the group uses.

Return value

\Drupal\group\Entity\GroupTypeInterface

Overrides GroupInterface::getGroupType

1 call to Group::getGroupType()
Group::postSave in src/Entity/Group.php
Acts on a saved entity before the insert or update hook is invoked.

File

src/Entity/Group.php, line 147

Class

Group
Defines the Group entity.

Namespace

Drupal\group\Entity

Code

public function getGroupType() {
  return $this->type->entity;
}