You are here

public function MaestroSpawnSubFlowTask::subFlowChoiceHandlerCallback in Maestro 8.2

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

Implements callback for Ajax event on objective selection.

Parameters

array $form: From render array.

\Drupal\Core\Form\FormStateInterface $form_state: Current state of form.

Return value

array Objective selection section of the form.

File

src/Plugin/EngineTasks/MaestroSpawnSubFlowTask.php, line 277

Class

MaestroSpawnSubFlowTask
Maestro Spawn Sub Flow Task Plugin.

Namespace

Drupal\maestro\Plugin\EngineTasks

Code

public function subFlowChoiceHandlerCallback(array $form, FormStateInterface &$form_state) {
  return $form['maestro_sub_flow_label'];
}