public function TranslateFormBase::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/locale/src/Form/TranslateFormBase.php \Drupal\locale\Form\TranslateFormBase::__construct()
Constructs a new TranslationFormBase object.
Parameters
\Drupal\locale\StringStorageInterface $locale_storage: The locale storage.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
- core/
modules/ locale/ src/ Form/ TranslateFormBase.php, line 56
Class
- TranslateFormBase
- Defines the locale user interface translation form base.
Namespace
Drupal\locale\FormCode
public function __construct(StringStorageInterface $locale_storage, StateInterface $state, LanguageManagerInterface $language_manager) {
$this->localeStorage = $locale_storage;
$this->state = $state;
$this->languageManager = $language_manager;
}