You are here

protected function EntityExportCsvTrait::getDefaultExporterId in Entity Export CSV 8

Get the default exporter id for a field type.

Parameters

array $exporter_ids: The exporter ids.

Return value

string The default exporter id.

2 calls to EntityExportCsvTrait::getDefaultExporterId()
EntityExportCsv::buildForm in src/Form/EntityExportCsv.php
Form constructor.
EntityExportCsvForm::form in src/Form/EntityExportCsvForm.php
Gets the actual form array to be built.

File

src/Form/EntityExportCsvTrait.php, line 21

Class

EntityExportCsvTrait
Provides a trait for Entity Export Csv form.

Namespace

Drupal\entity_export_csv\Form

Code

protected function getDefaultExporterId(array $exporter_ids) {
  $default_exporter = reset($exporter_ids);
  return $default_exporter;
}