BlockOgMembership.php in Organic groups 8
Namespace
Drupal\og\Plugin\ActionFile
src/Plugin/Action/BlockOgMembership.phpView source
<?php
declare (strict_types=1);
namespace Drupal\og\Plugin\Action;
use Drupal\og\OgMembershipInterface;
/**
* Blocks a group membership.
*
* @Action(
* id = "og_membership_block_action",
* label = @Translation("Block the selected membership(s)"),
* type = "og_membership"
* )
*/
class BlockOgMembership extends ChangeOgMembershipStateBase {
/**
* {@inheritdoc}
*/
public function getTargetState() {
return OgMembershipInterface::STATE_BLOCKED;
}
/**
* {@inheritdoc}
*/
public function getOriginalState() {
return NULL;
}
}
Classes
Name | Description |
---|---|
BlockOgMembership | Blocks a group membership. |