You are here

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:

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\og

Code

public function setState(string $state) : OgMembershipInterface;