You are here

public function DelimitedYamlFormExporter::getFileExtension in YAML Form 8

Get export file extension.

Return value

string A file extension.

Overrides YamlFormExporterBase::getFileExtension

File

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

Class

DelimitedYamlFormExporter
Defines a delimited text exporter.

Namespace

Drupal\yamlform\Plugin\YamlFormExporter

Code

public function getFileExtension() {
  switch ($this->configuration['delimiter']) {
    case "\t":
      return 'tsv';
    default:
      return 'csv';
  }
}