maestro-3.0.1-rc2/src/Form/MaestroExecuteInteractive.php

src/Form/MaestroExecuteInteractive.php
<?php

namespace Drupal\maestro\Form;

use Drupal\Core\Form\FormStateInterface;

/**
 * Interactive task form handler.
 */
class MaestroExecuteInteractive extends MaestroInteractiveFormBase {

  /**
   * Overridden method to build the form for the interactive task.
   * We are fetching off the interactive function's form fields for this task.
   * {@inheritdoc}.
   */
  public function buildForm(array $form, FormStateInterface $form_state, $queueid_or_token = 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_or_token, $modal);
    if (isset($form['error'])) {
      return $form;
    }

    return $this->getExecutableFormFields();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc