You are here

public function OgMembership::isPending in Organic groups 8

Returns TRUE if the OG membership is pending.

Return value

bool TRUE if the OG membership is pending, FALSE otherwise.

Overrides OgMembershipInterface::isPending

File

src/Entity/OgMembership.php, line 570

Class

OgMembership
The membership entity that connects a group and a user.

Namespace

Drupal\og\Entity

Code

public function isPending() : bool {
  return $this
    ->getState() === OgMembershipInterface::STATE_PENDING;
}