You are here

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:

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

Code

public abstract function getOriginalState();