You are here

public function Importer::__construct in Tome 8

Creates an Importer object.

Parameters

\Drupal\Core\Config\StorageInterface $content_storage: The target content storage.

\Symfony\Component\Serializer\Serializer $serializer: The serializer.

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher.

\Drupal\tome_sync\FileSyncInterface $file_sync: The file sync service.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

File

modules/tome_sync/src/Importer.php, line 95

Class

Importer
Handles importing of content and file entities.

Namespace

Drupal\tome_sync

Code

public function __construct(StorageInterface $content_storage, Serializer $serializer, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, AccountSwitcherInterface $account_switcher, FileSyncInterface $file_sync, FileSystemInterface $file_system) {
  $this->contentStorage = $content_storage;
  $this->serializer = $serializer;
  $this->entityTypeManager = $entity_type_manager;
  $this->isImporting = FALSE;
  $this->eventDispatcher = $event_dispatcher;
  $this->accountSwitcher = $account_switcher;
  $this->fileSync = $file_sync;
  $this->fileSystem = $file_system;
}