public function Data::filterDataWithFiles

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 217

Class

Data
All data-related functions.

Namespace

Drupal\tmgmt

Code

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