You are here

public function EntityExportCsvManager::getDelimiters in Entity Export CSV 8

Get the delimiter options.

Return value

array The delimiter options.

Overrides EntityExportCsvManagerInterface::getDelimiters

File

src/EntityExportCsvManager.php, line 338

Class

EntityExportCsvManager
Class EntityExportCsvManager.

Namespace

Drupal\entity_export_csv

Code

public function getDelimiters() {
  $delimiters = [
    ',' => $this
      ->t('Comma (,)'),
    ';' => $this
      ->t('Semicolon (;)'),
    '\\t' => $this
      ->t('Tab (\\t)'),
    ':' => $this
      ->t('Colon (:)'),
    '|' => $this
      ->t('Pipe (|)'),
    '.' => $this
      ->t('Period (.)'),
    ' ' => $this
      ->t('Space ( )'),
  ];

  // @TODO Allows altering separators (Dispatch an Event).
  return $delimiters;
}