You are here

public function YamlFormTranslationManager::__construct in YAML Form 8

Constructs a YamlFormTranslationManager object.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.

\Drupal\yamlform\YamlFormElementManagerInterface $element_manager: The form element manager.

File

src/YamlFormTranslationManager.php, line 47

Class

YamlFormTranslationManager
Defines a class to translate form elements.

Namespace

Drupal\yamlform

Code

public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, YamlFormElementManagerInterface $element_manager) {
  $this->languageManager = $language_manager;
  $this->configFactory = $config_factory;
  $this->elementManager = $element_manager;
}