function ImportForm::__construct

Same name 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()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.