function TranslateFormBase::__construct

Same name in other branches
  1. 8.9.x core/modules/locale/src/Form/TranslateFormBase.php \Drupal\locale\Form\TranslateFormBase::__construct()
  2. 10 core/modules/locale/src/Form/TranslateFormBase.php \Drupal\locale\Form\TranslateFormBase::__construct()
  3. 11.x 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;
}

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