You are here

public function StateManager::__construct in Field Encryption 3.0.x

Constructs a new ConfigSubscriber object.

Parameters

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

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

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entity_schema_repository: The entity last installed schema repository.

\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface $entity_definition_update_manager: The entity definition update manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

src/StateManager.php, line 83

Class

StateManager
Manages state for the module.

Namespace

Drupal\field_encrypt

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, QueueFactory $queue_factory, StateInterface $state, EntityLastInstalledSchemaRepositoryInterface $entity_schema_repository, EntityDefinitionUpdateManagerInterface $entity_definition_update_manager, ModuleHandlerInterface $module_handler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->queueFactory = $queue_factory;
  $this->state = $state;
  $this->entitySchemaRepository = $entity_schema_repository;
  $this->entityDefinitionUpdateManager = $entity_definition_update_manager;
  $this->moduleHandler = $module_handler;
}