You are here

public function LingotekWorkbenchRedirectController::__construct in Lingotek Translation 3.6.x

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

Constructs a LingotekControllerBase object.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The Request instance.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\lingotek\LingotekInterface $lingotek: The lingotek service.

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides LingotekControllerBase::__construct

File

src/Controller/LingotekWorkbenchRedirectController.php, line 48

Class

LingotekWorkbenchRedirectController
Controller for redirecting to the Lingotek TMS workbench.

Namespace

Drupal\lingotek\Controller

Code

public function __construct(Request $request, ConfigFactoryInterface $config_factory, LingotekInterface $lingotek, LanguageLocaleMapperInterface $language_locale_mapper, FormBuilderInterface $form_builder, LoggerInterface $logger, TimeInterface $time = NULL) {
  parent::__construct($request, $config_factory, $lingotek, $language_locale_mapper, $form_builder, $logger);
  $this->time = $time;
}