public function PurgeUsersQueueWorker::__construct in Auto Purge Users 8.3
Constructs a new PurgeUsersQueueWorker 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.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
Overrides PluginBase::__construct
File
- src/
Plugin/ QueueWorker/ PurgeUsersQueueWorker.php, line 62
Class
- PurgeUsersQueueWorker
- Processes cron queue.
Namespace
Drupal\purge_users\Plugin\QueueWorkerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, UserManagementServiceInterface $purge_user, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->purgeUserManager = $purge_user;
$this->entityTypeManager = $entity_type_manager;
$this->configFactory = $config_factory;
}