You are here

public function EntityExportCsvFieldsEvent::setFields in Entity Export CSV 8

Sets the supported fields.

Parameters

array $fields: An array of field definitions, or label, keyed by field_name.

Return value

$this

File

src/Event/EntityExportCsvFieldsEvent.php, line 111

Class

EntityExportCsvFieldsEvent
Defines the fields event.

Namespace

Drupal\entity_export_csv\Event

Code

public function setFields(array $fields) {
  $this->fields = $fields;
  return $this;
}