public function LingotekNotificationController::__construct in Lingotek Translation 3.2.x
Same name and namespace in other branches
- 8.2 src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 4.0.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.0.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.1.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.3.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.4.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.5.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.6.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.7.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__construct()
- 3.8.x src/Controller/LingotekNotificationController.php \Drupal\lingotek\Controller\LingotekNotificationController::__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\lingotek\LingotekConfigurationServiceInterface $lingotek_configuration: The Lingotek configuration service.
\Drupal\lingotek\LingotekContentTranslationServiceInterface $content_translation_service: The Lingotek content translation service.
\Drupal\lingotek\LingotekConfigTranslationServiceInterface $config_translation_service: The Lingotek config translation service.
\Drupal\lingotek\LingotekInterfaceTranslationServiceInterface $interface_translation_service: The Lingotek interface translation service.
Overrides LingotekControllerBase::__construct
File
- src/
Controller/ LingotekNotificationController.php, line 84
Class
- LingotekNotificationController
- Returns responses for lingotek module setup routes.
Namespace
Drupal\lingotek\ControllerCode
public function __construct(Request $request, ConfigFactoryInterface $config_factory, LingotekInterface $lingotek, LanguageLocaleMapperInterface $language_locale_mapper, FormBuilderInterface $form_builder, LoggerInterface $logger, LingotekConfigurationServiceInterface $lingotek_configuration, LingotekContentTranslationServiceInterface $content_translation_service, LingotekConfigTranslationServiceInterface $config_translation_service, LingotekInterfaceTranslationServiceInterface $interface_translation_service = NULL) {
parent::__construct($request, $config_factory, $lingotek, $language_locale_mapper, $form_builder, $logger);
$this->lingotekConfiguration = $lingotek_configuration;
$this->lingotekContentTranslation = $content_translation_service;
$this->lingotekConfigTranslation = $config_translation_service;
if (!$interface_translation_service) {
@trigger_error('The lingotek.interface_translation service must be passed to LingotekNotificationController::__construct, it is included in lingotek:3.2.0 and required for lingotek:4.0.0.', E_USER_DEPRECATED);
$interface_translation_service = \Drupal::service('lingotek.interface_translation');
}
$this->lingotekInterfaceTranslation = $interface_translation_service;
}