You are here

public function MappingCreator::__construct in GatherContent 8.5

MappingCreator constructor.

Parameters

\Cheppers\GatherContent\GatherContentClientInterface $client:

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager:

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo:

\Drupal\Component\Uuid\UuidInterface $uuidService:

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler:

\Drupal\Core\Language\LanguageManagerInterface $languageManager:

\Drupal\gathercontent\MigrationDefinitionCreator $migrationDefinitionCreator:

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplayRepository:

File

gathercontent_upload/src/Export/MappingCreator.php, line 124

Class

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

Namespace

Drupal\gathercontent_upload\Export

Code

public function __construct(GatherContentClientInterface $client, EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, UuidInterface $uuidService, ModuleHandlerInterface $moduleHandler, LanguageManagerInterface $languageManager, MigrationDefinitionCreator $migrationDefinitionCreator, EntityDisplayRepositoryInterface $entityDisplayRepository) {
  $this->client = $client;
  $this->entityTypeManager = $entityTypeManager;
  $this->entityFieldManager = $entityFieldManager;
  $this->entityTypeBundleInfo = $entityTypeBundleInfo;
  $this->uuidService = $uuidService;
  $this->moduleHandler = $moduleHandler;
  $this->languageManager = $languageManager;
  $this->migrationDefinitionCreator = $migrationDefinitionCreator;
  $this->entityDisplayRepository = $entityDisplayRepository;
  if ($this->moduleHandler
    ->moduleExists('content_translation')) {
    $this->contentTranslation = \Drupal::service('content_translation.manager');
  }
}