You are here

function hook_tablefield_encodings_alter in TableField 8.2

Alters Tablefield encodings.

Parameters

array $encodings: The list of encodings to support for CSV import.

1 invocation of hook_tablefield_encodings_alter()
Tablefield::importCsv in src/Element/Tablefield.php
Helper function to import data from a CSV file.

File

./tablefield.api.php, line 16
Hooks and API provided by the Tablefield module.

Code

function hook_tablefield_encodings_alter(array &$encodings) {

  // Add UTF-16 encoding support.
  $encodings[] = 'UTF-16';
}