abstract public function ChangeOgMembershipStateBase::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
1 call to ChangeOgMembershipStateBase::getOriginalState()
- ChangeOgMembershipStateBase::access in src/
Plugin/ Action/ ChangeOgMembershipStateBase.php - Checks object access.
3 methods override ChangeOgMembershipStateBase::getOriginalState()
- ApprovePendingOgMembership::getOriginalState in src/
Plugin/ Action/ ApprovePendingOgMembership.php - Returns the state the membership should have for the action to be executed.
- BlockOgMembership::getOriginalState in src/
Plugin/ Action/ BlockOgMembership.php - Returns the state the membership should have for the action to be executed.
- PendingOgMembership::getOriginalState in src/
Plugin/ Action/ PendingOgMembership.php - Returns the state the membership should have for the action to be executed.
File
- src/
Plugin/ Action/ ChangeOgMembershipStateBase.php, line 115
Class
- ChangeOgMembershipStateBase
- Base class for actions that change the state of a membership.
Namespace
Drupal\og\Plugin\ActionCode
public abstract function getOriginalState();