public function LingotekApi::sourceCompleted in Lingotek Translation 7.7
File
- lib/
Drupal/ lingotek/ LingotekApi.php, line 207 - Defines Drupal\lingotek\LingotekApi
Class
- LingotekApi
- @file Defines Drupal\lingotek\LingotekApi
Code
public function sourceCompleted($process_id) {
$params = array(
'id' => $process_id,
);
$result = $this
->request('getProcessProgress', $params);
return !empty($result->entries->{$process_id}->error) ? $result->entries->{$process_id}->error : !empty($result->entries->{$process_id}->done);
}