You are here

protected function ListExport::getFormatExportOptions in Entity Export CSV 8

Get the format options to export.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

Return value

array An array of format options.

Overrides FieldTypeExportBase::getFormatExportOptions

File

src/Plugin/FieldTypeExport/ListExport.php, line 66

Class

ListExport
Defines a List field type export plugin.

Namespace

Drupal\entity_export_csv\Plugin\FieldTypeExport

Code

protected function getFormatExportOptions(FieldDefinitionInterface $field_definition) {
  $options = parent::getFormatExportOptions($field_definition);
  $options['list_label'] = $this
    ->t('Label');
  return $options;
}