You are here

public function LingotekManagementForm::__construct in Lingotek Translation 8

Constructs a new LingotekManagementForm object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query factory.

\Drupal\lingotek\LingotekConfigurationServiceInterface $lingotek_configuration: The Lingotek configuration service.

\Drupal\lingotek\LanguageLocaleMapperInterface $language_locale_mapper: The language-locale mapper.

\Drupal\lingotek\LingotekContentTranslationServiceInterface $translation_service: The Lingotek content translation service.

\Drupal\content_translation\ContentTranslationManagerInterface $content_translation_manager: The content translation manager.

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The factory for the temp store object.

string $entity_type_id: The entity type id.

File

src/Form/LingotekManagementForm.php, line 134
Contains \Drupal\Lingotek\Form\LingotekManagementForm.

Class

LingotekManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, QueryFactory $entity_query, LingotekInterface $lingotek, LingotekConfigurationServiceInterface $lingotek_configuration, LanguageLocaleMapperInterface $language_locale_mapper, ContentTranslationManagerInterface $content_translation_manager, LingotekContentTranslationServiceInterface $translation_service, PrivateTempStoreFactory $temp_store_factory, StateInterface $state, $entity_type_id) {
  $this->entityManager = $entity_manager;
  $this->languageManager = $language_manager;
  $this->entityQuery = $entity_query;
  $this->contentTranslationManager = $content_translation_manager;
  $this->lingotek = $lingotek;
  $this->translationService = $translation_service;
  $this->tempStoreFactory = $temp_store_factory;
  $this->entityTypeId = $entity_type_id;
  $this->lingotek = $lingotek;
  $this->lingotekConfiguration = $lingotek_configuration;
  $this->languageLocaleMapper = $language_locale_mapper;
  $this->state = $state;
}