You are here

public function ChangeSingleOgMembershipRoleBase::__construct in Organic groups 8

Constructs a ChangeSingleOgMembershipRoleBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The user role entity type.

\Drupal\og\OgAccessInterface $og_access: The OG access service.

Overrides ConfigurableActionBase::__construct

File

src/Plugin/Action/ChangeSingleOgMembershipRoleBase.php, line 52

Class

ChangeSingleOgMembershipRoleBase
Provides a base class for operations to change a user's group membership.

Namespace

Drupal\og\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeInterface $entity_type, OgAccessInterface $og_access) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityType = $entity_type;
  $this->ogAccess = $og_access;
}