You are here

public function GroupType::getAnonymousRole in Group 2.0.x

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

Gets the generic anonymous group role for this group type.

Return value

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

Overrides GroupTypeInterface::getAnonymousRole

File

src/Entity/GroupType.php, line 169

Class

GroupType
Defines the Group type configuration entity.

Namespace

Drupal\group\Entity

Code

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