public function GroupType::getAnonymousRole in Group 8
Same name and namespace in other branches
- 2.0.x 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\EntityCode
public function getAnonymousRole() {
return $this
->entityTypeManager()
->getStorage('group_role')
->load($this
->getAnonymousRoleId());
}