public function YamlFormSubmissionDevelGenerate::__construct in YAML Form 8
Constructs a new YamlFormSubmissionDevelGenerate object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\yamlform\YamlFormSubmissionGenerateInterface $yamlform_submission_generate: The form submission generator.
File
- src/
Plugin/ DevelGenerate/ YamlFormSubmissionDevelGenerate.php, line 82
Class
- YamlFormSubmissionDevelGenerate
- Provides a YamlFormSubmissionDevelGenerate plugin.
Namespace
Drupal\yamlform\Plugin\DevelGenerateCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, YamlFormSubmissionGenerateInterface $yamlform_submission_generate) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->yamlformSubmissionGenerate = $yamlform_submission_generate;
$this->yamlformStorage = $entity_type_manager
->getStorage('yamlform');
$this->yamlformSubmissionStorage = $entity_type_manager
->getStorage('yamlform_submission');
}