You are here

public function TranslateFormBase::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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\Form

Code

public function __construct(StringStorageInterface $locale_storage, StateInterface $state, LanguageManagerInterface $language_manager) {
  $this->localeStorage = $locale_storage;
  $this->state = $state;
  $this->languageManager = $language_manager;
}