You are here

public function DelimitedWebformExporter::setConfiguration in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformExporter/DelimitedWebformExporter.php \Drupal\webform\Plugin\WebformExporter\DelimitedWebformExporter::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides WebformExporterBase::setConfiguration

File

src/Plugin/WebformExporter/DelimitedWebformExporter.php, line 32

Class

DelimitedWebformExporter
Defines a delimited text exporter.

Namespace

Drupal\webform\Plugin\WebformExporter

Code

public function setConfiguration(array $configuration) {
  parent::setConfiguration($configuration);
  $this->configuration['delimiter'] = $this->configuration['delimiter'] === '\\t' ? "\t" : $this->configuration['delimiter'];
  return $this;
}