You are here

public function MaestroManualWebTask::execute in Maestro 3.x

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