You are here

public function Data::filterTranslatable in Translation Management Tool 8

Flattens and filters data for being translatable.

Return value

array Returns a filtered array.

File

src/Data.php, line 256

Class

Data
All data-related functions.

Namespace

Drupal\tmgmt

Code

public function filterTranslatable($data) {
  return array_filter($this
    ->flatten($data), array(
    $this,
    'filterData',
  ));
}