You are here

public function GroupRole::isAnonymous in Group 8

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

Returns whether the role is for an anonymous user.

Return value

bool Whether the role is for an anonymous user.

Overrides GroupRoleInterface::isAnonymous

1 call to GroupRole::isAnonymous()
GroupRole::isMember in src/Entity/GroupRole.php
Returns whether the role is for a member.

File

src/Entity/GroupRole.php, line 161

Class

GroupRole
Defines the Group role configuration entity.

Namespace

Drupal\group\Entity

Code

public function isAnonymous() {
  return $this->audience == 'anonymous';
}