public static function MaestroEngine::unArchiveTask in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::unArchiveTask()
UnArchiveTask The opposite of archiveTask. Used in management of a flow.
Parameters
int $queueID: The Maestro Queue ID.
File
- src/
Engine/ MaestroEngine.php, line 522
Class
- MaestroEngine
- Class MaestroEngine.
Namespace
Drupal\maestro\EngineCode
public static function unArchiveTask($queueID) {
$queueRecord = \Drupal::entityTypeManager()
->getStorage('maestro_queue')
->load($queueID);
$queueRecord
->set('archived', 0);
$queueRecord
->save();
}