You are here

public function LingotekJobAssignToMultipleEntitiesForm::__construct in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  2. 4.0.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  3. 3.0.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  4. 3.1.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  5. 3.2.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  6. 3.3.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  7. 3.4.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  8. 3.6.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  9. 3.7.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()
  10. 3.8.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::__construct()

Constructs a new LingotekJobAssignToMultipleEntitiesForm object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

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

File

src/Form/LingotekJobAssignToMultipleEntitiesForm.php, line 82

Class

LingotekJobAssignToMultipleEntitiesForm
Form for bulk assignation of Job ID to content entities.

Namespace

Drupal\lingotek\Form

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, PrivateTempStoreFactory $temp_store_factory, MessengerInterface $messenger, LingotekContentTranslationServiceInterface $translation_service) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->tempStore = $temp_store_factory
    ->get('lingotek_assign_job_entity_multiple_confirm');
  $this->messenger = $messenger;
  $this->translationService = $translation_service;
}