You are here

public function TranslatorForm::__construct in Translation Management Tool 8

Constructs an EntityForm object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface: The module handler service.

\Drupal\tmgmt\TranslatorManager $translator_manager: The translator plugin manager.

File

src/Form/TranslatorForm.php, line 47

Class

TranslatorForm
Form controller for the translator edit forms.

Namespace

Drupal\tmgmt\Form

Code

public function __construct(TranslatorManager $translator_manager, SourceManager $source_manager) {
  $this->translatorManager = $translator_manager;
  $this->sourceManager = $source_manager;
}