You are here

public function GroupType::getOutsiderRole in Group 8

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

Gets the generic outsider group role for this group type.

Return value

\Drupal\group\Entity\GroupRoleInterface The outsider group role this group type uses.

Overrides GroupTypeInterface::getOutsiderRole

File

src/Entity/GroupType.php, line 185

Class

GroupType
Defines the Group type configuration entity.

Namespace

Drupal\group\Entity

Code

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