public static function MaestroEngine::getTaskStatusArray in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::getTaskStatusArray()
Fetches the task status values in an associative array where the key is the status ID and the value is the translated string.
1 call to MaestroEngine::getTaskStatusArray()
- MaestroTrace::buildForm in src/
Form/ MaestroTrace.php - This is the trace form. Quite complex.
File
- src/
Engine/ MaestroEngine.php, line 801
Class
- MaestroEngine
- Class MaestroEngine.
Namespace
Drupal\maestro\EngineCode
public static function getTaskStatusArray() {
$arr = [];
$arr[TASK_STATUS_ACTIVE] = t('Active');
$arr[TASK_STATUS_SUCCESS] = t('Successfully Completed');
$arr[TASK_STATUS_CANCEL] = t('Cancelled');
$arr[TASK_STATUS_HOLD] = t('On Hold');
$arr[TASK_STATUS_ABORTED] = t('Aborted');
return $arr;
}