You are here

public function Data::filterData in Translation Management Tool 8

Array filter callback for filtering untranslatable source data elements.

Parameters

array $value: Array of values to filter.

Return value

string Keys string.

File

src/Data.php, line 199

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);
}