public function YamlFormExporterBase::__construct in YAML Form 8
Constructs a Drupal\Component\Plugin\PluginBase 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.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\yamlform\YamlFormElementManagerInterface $element_manager: The form element manager.
Overrides PluginBase::__construct
File
- src/
YamlFormExporterBase.php, line 65
Class
- YamlFormExporterBase
- Provides a base class for a results exporter.
Namespace
Drupal\yamlformCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, EntityTypeManagerInterface $entity_type_manager, YamlFormElementManagerInterface $element_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
$this->logger = $logger;
$this->entityTypeManager = $entity_type_manager;
$this->entityStorage = $entity_type_manager
->getStorage('yamlform_submission');
$this->elementManager = $element_manager;
}