You are here

public function ReleaseJob::buildForm in Advanced Queue 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/Form/ReleaseJob.php, line 57

Class

ReleaseJob
Provides a confirmation form for releasing a job.

Namespace

Drupal\advancedqueue\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, QueueInterface $advancedqueue_queue = NULL, $job_id = NULL) {
  $this->queue = $advancedqueue_queue;
  $this->jobId = $job_id;
  return parent::buildForm($form, $form_state);
}