function ImportForm::__construct
Same name in other branches
- 9 core/modules/locale/src/Form/ImportForm.php \Drupal\locale\Form\ImportForm::__construct()
- 8.9.x core/modules/locale/src/Form/ImportForm.php \Drupal\locale\Form\ImportForm::__construct()
- 10 core/modules/locale/src/Form/ImportForm.php \Drupal\locale\Form\ImportForm::__construct()
Constructs a form for language import.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The configurable language manager.
File
-
core/
modules/ locale/ src/ Form/ ImportForm.php, line 59
Class
- ImportForm
- Form constructor for the translation import screen.
Namespace
Drupal\locale\FormCode
public function __construct(ModuleHandlerInterface $module_handler, ConfigurableLanguageManagerInterface $language_manager) {
$this->moduleHandler = $module_handler;
$this->languageManager = $language_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.