You are here

public function DeleteJob::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/DeleteJob.php, line 57

Class

DeleteJob
Provides a confirmation form for deleting 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);
}