You are here

public function ImportEntityManager::__construct in Acquia Content Hub 8

Constructor.

Parameters

\Drupal\Core\Database\Connection $database: Database connection.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The Logger Factory.

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The Entity Repository.

\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The client manager.

\Drupal\acquia_contenthub\ContentHubEntitiesTracking $entities_tracking: The Content Hub Entities Tracking Service.

\Drupal\diff\DiffEntityComparison $entity_comparison: The Diff module's Entity Comparison service.

\Drupal\acquia_contenthub\EntityManager $entity_manager: The entity manager for Content Hub.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Core\Queue\QueueFactory $queue_factory: The Queue Factory.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The Language Manager.

File

src/ImportEntityManager.php, line 155

Class

ImportEntityManager
Provides a service for managing imported entities' actions.

Namespace

Drupal\acquia_contenthub

Code

public function __construct(Connection $database, LoggerChannelFactoryInterface $logger_factory, SerializerInterface $serializer, EntityRepositoryInterface $entity_repository, ClientManagerInterface $client_manager, ContentHubEntitiesTracking $entities_tracking, DiffEntityComparison $entity_comparison, EntityManager $entity_manager, TranslationInterface $string_translation, QueueFactory $queue_factory, LanguageManagerInterface $language_manager) {
  $this->database = $database;
  $this->loggerFactory = $logger_factory;
  $this->serializer = $serializer;
  $this->entityRepository = $entity_repository;
  $this->clientManager = $client_manager;
  $this->contentHubEntitiesTracking = $entities_tracking;
  $this->diffEntityComparison = $entity_comparison;
  $this->entityManager = $entity_manager;
  $this->stringTranslation = $string_translation;
  $this->queue = $queue_factory;
  $this->languageManager = $language_manager;
}