You are here

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

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

Constructs a new LingotekElementInfoAlterForm object.

Parameters

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

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

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route builder service.

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

File

src/Form/LingotekElementInfoAlterForm.php, line 70

Class

LingotekElementInfoAlterForm
Adds the option to use Lingotek to translate content entities

Namespace

Drupal\lingotek\Form

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, RouteBuilderInterface $route_builder, LingotekConfigurationServiceInterface $lingotek_configuration) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->routeBuilder = $route_builder;
  $this->lingotekConfiguration = $lingotek_configuration;
}