You are here

public function OgDeleteOrphansBase::__construct in Organic groups 8

Constructs an OgDeleteOrphansBase 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\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory.

\Drupal\og\MembershipManagerInterface $membership_manager: The OG membership manager service.

\Drupal\og\OgGroupAudienceHelperInterface $group_audience_helper: The OG group audience helper.

Overrides PluginBase::__construct

File

src/OgDeleteOrphansBase.php, line 69

Class

OgDeleteOrphansBase
Base implementation for OgDeleteOrphans plugins.

Namespace

Drupal\og

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, QueueFactory $queue_factory, MembershipManagerInterface $membership_manager, OgGroupAudienceHelperInterface $group_audience_helper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->queueFactory = $queue_factory;
  $this->membershipManager = $membership_manager;
  $this->groupAudienceHelper = $group_audience_helper;
}