You are here

public function EncryptedFieldUpdateBase::__construct in Field Encryption 8.2

Creates a new EncryptedFieldUpdate object.

Parameters

\Drupal\field_encrypt\FieldEncryptProcessEntitiesInterface $process_entities_service: The service the process entities.

ConfigFactoryInterface $config_factory: The configuration factory.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/EncryptedFieldUpdateBase.php, line 38

Class

EncryptedFieldUpdateBase
Provides base functionality for the EncryptedFieldUpdate Queue Workers.

Namespace

Drupal\field_encrypt\Plugin\QueueWorker

Code

public function __construct(FieldEncryptProcessEntitiesInterface $process_entities_service, ConfigFactoryInterface $config_factory) {
  $this->processEntitiesService = $process_entities_service;
  $this->config = $config_factory
    ->get('field_encrypt.settings');
}