You are here

public function ChangeMultipleOgMembershipRolesBase::__construct in Organic groups 8

Constructs a new RemoveMultipleOgMembershipRoles 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.

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The private temporary storage factory.

Overrides PluginBase::__construct

File

src/Plugin/Action/ChangeMultipleOgMembershipRolesBase.php, line 48

Class

ChangeMultipleOgMembershipRolesBase
Provides a base class for actions that change multiple roles at once.

Namespace

Drupal\og\Plugin\Action

Code

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