public function OgMembershipInterface::setState in Organic groups 8
Sets the membership state.
Parameters
string $state: The state of the membership. It may be of the following constants:
- OgMembershipInterface::STATE_ACTIVE
- OgMembershipInterface::STATE_PENDING
- OgMembershipInterface::STATE_BLOCKED.
Return value
\Drupal\og\OgMembershipInterface The updated OG Membership object.
1 method overrides OgMembershipInterface::setState()
- OgMembership::setState in src/
Entity/ OgMembership.php - Sets the membership state.
File
- src/
OgMembershipInterface.php, line 143
Class
- OgMembershipInterface
- Provides an interface for OG memberships.
Namespace
Drupal\ogCode
public function setState(string $state) : OgMembershipInterface;