public function Data::filterData

Array filter callback for filtering untranslatable source data elements.

This method only returns translatable text data items, to get both text and files, use Data::filterDataWithFiles().

Parameters

array $value: Array of values to filter.

Return value

string Keys string.

File

src/Data.php, line 204

Class

Data
All data-related functions.

Namespace

Drupal\tmgmt

Code

public function filterData(array $value) {
  return !(empty($value['#text']) || isset($value['#translate']) && $value['#translate'] === FALSE);
}