public function LingotekFake::getProcessStatus in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.7.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProcessStatus()
- 3.8.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getProcessStatus()
Gets the status of the process.
Parameters
string $process_id: The process ID in Lingotek.
Return value
bool|int Returns TRUE if the import process is completed. FALSE if it was not existing or failed. The percentage if it's still in progress.
Overrides LingotekInterface::getProcessStatus
File
- tests/
modules/ lingotek_test/ src/ LingotekFake.php, line 482
Class
Namespace
Drupal\lingotek_testCode
public function getProcessStatus($process_id) {
return \Drupal::state()
->get('lingotek.document_status_completion', TRUE);
}