You are here

public function LingotekControllerBase::__construct in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 8 src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  2. 8.2 src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  3. 3.0.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  4. 3.1.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  5. 3.2.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  6. 3.3.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  7. 3.4.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  8. 3.5.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  9. 3.6.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  10. 3.7.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__construct()
  11. 3.8.x src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::__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.

6 calls to LingotekControllerBase::__construct()
LingotekDashboardController::__construct in src/Controller/LingotekDashboardController.php
Constructs a LingotekDashboardController object.
LingotekEntityController::__construct in src/Controller/LingotekEntityController.php
Constructs a LingotekEntityController object.
LingotekInterfaceTranslationController::__construct in src/Controller/LingotekInterfaceTranslationController.php
Constructs a LingotekManagementController object.
LingotekManagementController::__construct in src/Controller/LingotekManagementController.php
Constructs a LingotekManagementController object.
LingotekNotificationController::__construct in src/Controller/LingotekNotificationController.php
Constructs a LingotekControllerBase object.

... See full list

6 methods override LingotekControllerBase::__construct()
LingotekDashboardController::__construct in src/Controller/LingotekDashboardController.php
Constructs a LingotekDashboardController object.
LingotekEntityController::__construct in src/Controller/LingotekEntityController.php
Constructs a LingotekEntityController object.
LingotekInterfaceTranslationController::__construct in src/Controller/LingotekInterfaceTranslationController.php
Constructs a LingotekManagementController object.
LingotekManagementController::__construct in src/Controller/LingotekManagementController.php
Constructs a LingotekManagementController object.
LingotekNotificationController::__construct in src/Controller/LingotekNotificationController.php
Constructs a LingotekControllerBase object.

... See full list

File

src/Controller/LingotekControllerBase.php, line 73

Class

LingotekControllerBase
Base class for handling all Lingotek-related routes.

Namespace

Drupal\lingotek\Controller

Code

public function __construct(Request $request, ConfigFactoryInterface $config_factory, LingotekInterface $lingotek, LanguageLocaleMapperInterface $language_locale_mapper, FormBuilderInterface $form_builder, LoggerInterface $logger) {
  $this->request = $request;
  $this->configFactory = $config_factory;
  $this->lingotek = $lingotek;
  $this->languageLocaleMapper = $language_locale_mapper;
  $this->formBuilder = $form_builder;
  $this->logger = $logger;
}