public function WebformElementBase::buildExportRecord in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::buildExportRecord()
Build an element's export row.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
array $export_options: An associative array of export options.
Return value
array An array containing the element's export row.
Overrides WebformElementInterface::buildExportRecord
See also
\Drupal\webform\WebformSubmissionExporterInterface::getDefaultExportOptions
2 calls to WebformElementBase::buildExportRecord()
- OptionsBase::buildExportRecord in src/
Plugin/ WebformElement/ OptionsBase.php - Build an element's export row.
- WebformCompositeBase::buildExportRecord in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Build an element's export row.
7 methods override WebformElementBase::buildExportRecord()
- DateBase::buildExportRecord in src/
Plugin/ WebformElement/ DateBase.php - Build an element's export row.
- OptionsBase::buildExportRecord in src/
Plugin/ WebformElement/ OptionsBase.php - Build an element's export row.
- TextFormat::buildExportRecord in src/
Plugin/ WebformElement/ TextFormat.php - Build an element's export row.
- WebformCompositeBase::buildExportRecord in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Build an element's export row.
- WebformLikert::buildExportRecord in src/
Plugin/ WebformElement/ WebformLikert.php - Build an element's export row.
File
- src/
Plugin/ WebformElementBase.php, line 1924
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function buildExportRecord(array $element, WebformSubmissionInterface $webform_submission, array $export_options) {
$element['#format_items'] = $export_options['multiple_delimiter'];
return [
$this
->formatText($element, $webform_submission, $export_options),
];
}