You are here

public function ImportPartialForm::__construct in Tome 8

Constructs an ImportPartialForm instance.

Parameters

\Drupal\tome_sync\ImporterInterface $importer: The importer.

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

\Drupal\tome_sync\ContentHasherInterface $content_hasher: The content hasher.

\Drupal\Core\State\StateInterface $state: The state system.

\Drupal\Core\Config\StorageInterface $sync_storage: The source storage.

\Drupal\Core\Config\StorageInterface $active_storage: The target storage.

File

modules/tome_sync/src/Form/ImportPartialForm.php, line 84

Class

ImportPartialForm
Contains a form for performing a partial import.

Namespace

Drupal\tome_sync\Form

Code

public function __construct(ImporterInterface $importer, EntityTypeManagerInterface $entity_type_manager, ContentHasherInterface $content_hasher, StateInterface $state, StorageInterface $sync_storage, StorageInterface $active_storage) {
  $this->importer = $importer;
  $this->entityTypeManager = $entity_type_manager;
  $this->contentHasher = $content_hasher;
  $this->state = $state;
  $this->syncStorage = $sync_storage;
  $this->activeStorage = $active_storage;
}