public function ApprovePendingOgMembership::getTargetState in Organic groups 8
Returns the state the membership will have after the action is executed.
Return value
string One of the following:
- Drupal\og\OgMembershipInterface::STATE_ACTIVE
- Drupal\og\OgMembershipInterface::STATE_PENDING
- Drupal\og\OgMembershipInterface::STATE_BLOCKED
Overrides ChangeOgMembershipStateBase::getTargetState
File
- src/
Plugin/ Action/ ApprovePendingOgMembership.php, line 23
Class
- ApprovePendingOgMembership
- Approves a pending group membership.
Namespace
Drupal\og\Plugin\ActionCode
public function getTargetState() {
return OgMembershipInterface::STATE_ACTIVE;
}