protected function TestWebformExporter::buildRecord in Webform 8.5
Same name and namespace in other branches
- 6.x tests/modules/webform_test_exporter/src/Plugin/WebformExporter/TestWebformExporter.php \Drupal\webform_test_exporter\Plugin\WebformExporter\TestWebformExporter::buildRecord()
Build export record using a webform submission.
Parameters
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Return value
array An array containing the export record.
Overrides TabularBaseWebformExporter::buildRecord
File
- tests/
modules/ webform_test_exporter/ src/ Plugin/ WebformExporter/ TestWebformExporter.php, line 54
Class
- TestWebformExporter
- Defines a test exporter.
Namespace
Drupal\webform_test_exporter\Plugin\WebformExporterCode
protected function buildRecord(WebformSubmissionInterface $webform_submission) {
$record = parent::buildRecord($webform_submission);
return $this->configuration['reverse'] ? array_reverse($record) : $record;
}