You are here

public function Exporter::__construct in Tome 8

Creates an Exporter 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/Exporter.php, line 97

Class

Exporter
Handles exporting 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->eventDispatcher = $event_dispatcher;
  $this->accountSwitcher = $account_switcher;
  $this->fileSync = $file_sync;
  $this->fileSystem = $file_system;
}