You are here

public function DelimitedYamlFormExporter::writeSubmission in YAML Form 8

Write submission to export.

Parameters

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

Overrides YamlFormExporterBase::writeSubmission

File

src/Plugin/YamlFormExporter/DelimitedYamlFormExporter.php, line 102

Class

DelimitedYamlFormExporter
Defines a delimited text exporter.

Namespace

Drupal\yamlform\Plugin\YamlFormExporter

Code

public function writeSubmission(YamlFormSubmissionInterface $yamlform_submission) {
  $record = $this
    ->buildRecord($yamlform_submission);
  fputcsv($this->fileHandle, $record, $this->configuration['delimiter']);
}