You are here

public function ImportForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/Form/ImportForm.php \Drupal\locale\Form\ImportForm::__construct()
  2. 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\Form

Code

public function __construct(ModuleHandlerInterface $module_handler, ConfigurableLanguageManagerInterface $language_manager) {
  $this->moduleHandler = $module_handler;
  $this->languageManager = $language_manager;
}