protected function WebformSubmissionExportImportWebformExporter::getImporter in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_submission_export_import/src/Plugin/WebformExporter/WebformSubmissionExportImportWebformExporter.php \Drupal\webform_submission_export_import\Plugin\WebformExporter\WebformSubmissionExportImportWebformExporter::getImporter()
Get the submission importer.
Return value
\Drupal\webform_submission_export_import\WebformSubmissionExportImportImporterInterface The submission importer.
File
- modules/
webform_submission_export_import/ src/ Plugin/ WebformExporter/ WebformSubmissionExportImportWebformExporter.php, line 84
Class
- WebformSubmissionExportImportWebformExporter
- Defines a machine readable CSV export that can be imported back into the current webform.
Namespace
Drupal\webform_submission_export_import\Plugin\WebformExporterCode
protected function getImporter() {
/** @var \Drupal\webform_submission_export_import\WebformSubmissionExportImportImporterInterface $importer */
$importer = \Drupal::service('webform_submission_export_import.importer');
$importer
->setWebform($this
->getWebform());
return $importer;
}