You are here

public function MaestroInteractiveExampleTask::isInteractive in Maestro 8.2

Same name and namespace in other branches
  1. 3.x modules/examples/maestro_interactive_task_plugin_example/src/Plugin/EngineTasks/MaestroInteractiveExampleTask.php \Drupal\maestro_interactive_task_plugin_example\Plugin\EngineTasks\MaestroInteractiveExampleTask::isInteractive()

Returns TRUE or FALSE to denote if this task has an interactive interface that needs to be shown in the Task Console and for any other requirements of the task.

Overrides MaestroEngineTaskInterface::isInteractive

File

modules/examples/maestro_interactive_task_plugin_example/src/Plugin/EngineTasks/MaestroInteractiveExampleTask.php, line 49

Class

MaestroInteractiveExampleTask
Maestro Interactive Example Task Plugin.

Namespace

Drupal\maestro_interactive_task_plugin_example\Plugin\EngineTasks

Code

public function isInteractive() {

  /*
   * You would return a TRUE here if this task required manual human intervention to complete.
   * This only applies to a task that must present options to the end user for completion in a task console.
   * For this example, we return FALSE.
   *
   * See the MaestroInteractiveTask type code for how to return an interactive task.
   */
  return TRUE;
}