You are here

public function YamlFormSubmissionExporter::__construct in YAML Form 8

Constructs a YamlFormSubmissionExporter object.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

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

\Drupal\yamlform\YamlFormExporterManagerInterface $exporter_manager: The results exporter manager.

File

src/YamlFormSubmissionExporter.php, line 117

Class

YamlFormSubmissionExporter
Form submission exporter.

Namespace

Drupal\yamlform

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory, StreamWrapperManagerInterface $stream_wrapper_manager, YamlFormElementManagerInterface $element_manager, YamlFormExporterManagerInterface $exporter_manager) {
  $this->configFactory = $config_factory;
  $this->entityStorage = $entity_type_manager
    ->getStorage('yamlform_submission');
  $this->queryFactory = $query_factory;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->elementManager = $element_manager;
  $this->exporterManager = $exporter_manager;
}