You are here

function lingotek_legacy_get_translation_status in Lingotek Translation 8.2

1 call to lingotek_legacy_get_translation_status()
lingotek_update_8011 in ./lingotek.install
Migrate Lingotek content metadata from fields to its own entity.

File

./lingotek.install, line 1032
Install, update and uninstall functions for the Lingotek module.

Code

function lingotek_legacy_get_translation_status($field) {
  $status = [];
  foreach ($field
    ->getIterator() as $delta => $value) {
    $status[$value->language] = $value->value;
  }
  return $status;
}