You are here

public function WebformElementBase::buildExportRecord in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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.

... See full list

File

src/Plugin/WebformElementBase.php, line 1996

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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),
  ];
}