You are here

public function NotifyUsersQueueWorker::__construct in Auto Purge Users 8.3

Constructs a new NotifyUsersQueueWorker instance.

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\purge_users\Services\UserManagementServiceInterface $purge_user: The purge user manager service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/NotifyUsersQueueWorker.php, line 52

Class

NotifyUsersQueueWorker
Processes cron queue.

Namespace

Drupal\purge_users\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, UserManagementServiceInterface $purge_user, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->purgeUserManager = $purge_user;
  $this->entityTypeManager = $entity_type_manager;
}