You are here

protected function FieldTypeExportBase::getPropertyColumnSeparator in Entity Export CSV 8

Get the property separator selected.

Return value

mixed|string The property separator selected.

1 call to FieldTypeExportBase::getPropertyColumnSeparator()
FieldTypeExportBase::export in src/Plugin/FieldTypeExportBase.php
Export the value of a field.

File

src/Plugin/FieldTypeExportBase.php, line 630

Class

FieldTypeExportBase
Base class for Field type export plugins.

Namespace

Drupal\entity_export_csv\Plugin

Code

protected function getPropertyColumnSeparator() {
  $configuration = $this
    ->getConfiguration();
  $separator = $configuration['property_separator'];
  if (empty($separator)) {
    $separator = ' ';
  }
  elseif ($separator === 'eol') {
    $separator = PHP_EOL;
  }
  return $separator;
}