public function YamlFormSubmissionGenerate::__construct in YAML Form 8
Constructs a YamlFormEmailBuilder object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\yamlform\YamlFormElementManagerInterface $element_manager: The form element manager.
File
- src/
YamlFormSubmissionGenerate.php, line 62
Class
- YamlFormSubmissionGenerate
- Form submission generator.
Namespace
Drupal\yamlformCode
public function __construct(ConfigFactoryInterface $config_factory, Token $token, YamlFormElementManagerInterface $element_manager) {
$this->configFactory = $config_factory;
$this->token = $token;
$this->elementManager = $element_manager;
$this->types = Yaml::decode($this->configFactory
->get('yamlform.settings')
->get('test.types') ?: '');
$this->names = Yaml::decode($this->configFactory
->get('yamlform.settings')
->get('test.names') ?: '');
}