public function OgMembership::isBlocked in Organic groups 8
Returns TRUE if the OG membership is blocked.
Return value
bool TRUE if the OG membership is blocked, FALSE otherwise.
Overrides OgMembershipInterface::isBlocked
1 call to OgMembership::isBlocked()
- OgMembership::hasPermission in src/
Entity/ OgMembership.php - Checks if the user has a permission inside the group.
File
- src/
Entity/ OgMembership.php, line 577
Class
- OgMembership
- The membership entity that connects a group and a user.
Namespace
Drupal\og\EntityCode
public function isBlocked() : bool {
return $this
->getState() === OgMembershipInterface::STATE_BLOCKED;
}