You are here

public static function MaestroEngine::unArchiveTask in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 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 524

Class

MaestroEngine
Class MaestroEngine.

Namespace

Drupal\maestro\Engine

Code

public static function unArchiveTask($queueID) {
  $queueRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_queue')
    ->load($queueID);
  $queueRecord
    ->set('archived', 0);
  $queueRecord
    ->save();
}