public function WebformSubmissionExporter::__construct in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionExporter.php \Drupal\webform\WebformSubmissionExporter::__construct()
Constructs a WebformSubmissionExporter object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\File\FileSystemInterface $file_system: File system service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.
\Drupal\Core\Archiver\ArchiverManager $archiver_manager: The archiver manager.
\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager.
\Drupal\webform\Plugin\WebformExporterManagerInterface $exporter_manager: The results exporter manager.
File
- src/
WebformSubmissionExporter.php, line 131
Class
- WebformSubmissionExporter
- Webform submission exporter.
Namespace
Drupal\webformCode
public function __construct(ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, EntityTypeManagerInterface $entity_type_manager, StreamWrapperManagerInterface $stream_wrapper_manager, ArchiverManager $archiver_manager, WebformElementManagerInterface $element_manager, WebformExporterManagerInterface $exporter_manager) {
$this->configFactory = $config_factory;
$this->fileSystem = $file_system;
$this->entityStorage = $entity_type_manager
->getStorage('webform_submission');
$this->streamWrapperManager = $stream_wrapper_manager;
$this->archiverManager = $archiver_manager;
$this->elementManager = $element_manager;
$this->exporterManager = $exporter_manager;
}