public function MaestroWebformTask::execute in Maestro 3.x
Same name and namespace in other branches
- 8.2 modules/maestro_webform/src/Plugin/EngineTasks/MaestroWebformTask.php \Drupal\maestro_webform\Plugin\EngineTasks\MaestroWebformTask::execute()
Part of the ExecutableInterface Execution of the Example task returns TRUE and does nothing else. .
Overrides ExecutableInterface::execute
File
- modules/
maestro_webform/ src/ Plugin/ EngineTasks/ MaestroWebformTask.php, line 97
Class
- MaestroWebformTask
- Maestro Webform Task Plugin.
Namespace
Drupal\maestro_webform\Plugin\EngineTasksCode
public function execute() {
/*
* Setting our run_once flag so that the engine doesn't have to keep trying to process this task.
*/
$queueRecord = \Drupal::entityTypeManager()
->getStorage('maestro_queue')
->load($this->queueID);
$queueRecord
->set('run_once', 1);
$queueRecord
->save();
return TRUE;
}