You are here

public function Exporter::__construct in GatherContent 8.5

Exporter constructor.

Parameters

\Cheppers\GatherContent\GatherContentClientInterface $client:

\Drupal\gathercontent\MetatagQuery $metatag:

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher:

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler:

\Drupal\Core\File\FileSystemInterface $fileSystem:

File

gathercontent_upload/src/Export/Exporter.php, line 115

Class

Exporter
Class for handling import/update logic from GatherContent to Drupal.

Namespace

Drupal\gathercontent_upload\Export

Code

public function __construct(GatherContentClientInterface $client, MetatagQuery $metatag, EntityTypeManagerInterface $entityTypeManager, EventDispatcherInterface $eventDispatcher, ModuleHandlerInterface $moduleHandler, FileSystemInterface $fileSystem) {
  $this->client = $client;
  $this->metatag = $metatag;
  $this->entityTypeManager = $entityTypeManager;
  $this->eventDispatcher = $eventDispatcher;
  $this->moduleHandler = $moduleHandler;
  $this->fileSystem = $fileSystem;
  if ($this->moduleHandler
    ->moduleExists('content_translation')) {
    $this->contentTranslation = Drupal::service('content_translation.manager');
  }
}