public function GroupRole::getGroupType in Group 2.0.x
Same name and namespace in other branches
- 8 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\EntityCode
public function getGroupType() {
return GroupType::load($this->group_type);
}