public function ApprovePendingOgMembership::getOriginalState in Organic groups 8
Returns the state the membership should have for the action to be executed.
Return value
string|null Either NULL if the action does not require the membership to be in a particular state for the action to be executed, or one of the following:
- Drupal\og\OgMembershipInterface::STATE_ACTIVE
- Drupal\og\OgMembershipInterface::STATE_PENDING
- Drupal\og\OgMembershipInterface::STATE_BLOCKED
Overrides ChangeOgMembershipStateBase::getOriginalState
File
- src/
Plugin/ Action/ ApprovePendingOgMembership.php, line 30
Class
- ApprovePendingOgMembership
- Approves a pending group membership.
Namespace
Drupal\og\Plugin\ActionCode
public function getOriginalState() {
return OgMembershipInterface::STATE_PENDING;
}