public function MaestroExecuteInteractive::buildForm in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Form/MaestroExecuteInteractive.php \Drupal\maestro\Form\MaestroExecuteInteractive::buildForm()
Overridden method to build the form for the interactive task. We are fetching off the interactive function's form fields for this task. .
Overrides MaestroInteractiveFormBase::buildForm
File
- src/
Form/ MaestroExecuteInteractive.php, line 17
Class
- MaestroExecuteInteractive
- Interactive task form handler.
Namespace
Drupal\maestro\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $queueid = NULL, $modal = NULL) {
// The parent to this method does some special things... like makes sure we are the one assigned
// to execute this task.
$form = parent::buildForm($form, $form_state, $queueid, $modal);
if (isset($form['error'])) {
return $form;
}
return $this
->getExecutableFormFields();
}