You are here

public function DeleteOgMembership::__construct in Organic groups 8

Constructs a DeleteOgMembership 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\og\OgAccessInterface $og_access: The OG access service.

Overrides PluginBase::__construct

File

src/Plugin/Action/DeleteOgMembership.php, line 44

Class

DeleteOgMembership
Deletes a group membership.

Namespace

Drupal\og\Plugin\Action

Code

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