You are here

public function GroupRole::getGroupType in Group 8

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

Returns the group type this role belongs to.

Return value

\Drupal\group\Entity\GroupTypeInterface The group type this role belongs to.

Overrides GroupRoleInterface::getGroupType

1 call to GroupRole::getGroupType()
GroupRole::grantAllPermissions in src/Entity/GroupRole.php
Grants all available permissions to the role.

File

src/Entity/GroupRole.php, line 185

Class

GroupRole
Defines the Group role configuration entity.

Namespace

Drupal\group\Entity

Code

public function getGroupType() {
  return GroupType::load($this->group_type);
}