You are here

public function GroupType::getMemberRole in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/GroupType.php \Drupal\group\Entity\GroupType::getMemberRole()

Gets the generic member group role for this group type.

Return value

\Drupal\group\Entity\GroupRoleInterface The generic member group role this group type uses.

Overrides GroupTypeInterface::getMemberRole

File

src/Entity/GroupType.php, line 201

Class

GroupType
Defines the Group type configuration entity.

Namespace

Drupal\group\Entity

Code

public function getMemberRole() {
  return $this
    ->entityTypeManager()
    ->getStorage('group_role')
    ->load($this
    ->getMemberRoleId());
}