You are here

public function MaestroManualWebTask::execute in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/EngineTasks/MaestroManualWebTask.php \Drupal\maestro\Plugin\EngineTasks\MaestroManualWebTask::execute()

Part of the ExecutableInterface Execution of the Manual Web sets the runonce key. It is up to the manual web task consumer to complete this task .

Overrides ExecutableInterface::execute

File

src/Plugin/EngineTasks/MaestroManualWebTask.php, line 82

Class

MaestroManualWebTask
Maestro Manual Web Task Plugin.

Namespace

Drupal\maestro\Plugin\EngineTasks

Code

public function execute() {
  $queueRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_queue')
    ->load($this->queueID);
  $queueRecord
    ->set('run_once', 1);
  $queueRecord
    ->save();
  return FALSE;
}