/**
  * Create a list of columns available on the given table's translation table.
  *
  * @param string $table
  *
  * @return array
  */
 private function setTranslatable($table)
 {
     $translate_table = $this->getTranslationTable($table);
     $translatable = [];
     // get a list of columns
     $columns = $this->schemaGenerator->getSchema()->listTableColumns($translate_table);
     // exclude the globally excluded field + primary key(s)
     $excluded = $this->excludedFieldsForTable($translate_table);
     foreach ($columns as $column) {
         if (!in_array($column->getName(), $excluded)) {
             $translatable[] = $column->getName();
         }
     }
     return $translatable;
 }