You are here

protected function ProcessDevelForm::getJobList in Module Builder 8.3

Gets the job list from the form state.

Parameters

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

Return value

The job list array.

2 calls to ProcessDevelForm::getJobList()
ProcessDevelForm::buildForm in module_builder_devel/src/Form/ProcessDevelForm.php
Form constructor.
ProcessDevelForm::submitForm in module_builder_devel/src/Form/ProcessDevelForm.php
Form submission handler.

File

module_builder_devel/src/Form/ProcessDevelForm.php, line 100

Class

ProcessDevelForm
Form for running selected analysis jobs and outputting the result.

Namespace

Drupal\module_builder_devel\Form

Code

protected function getJobList(FormStateInterface $form_state) {
  $job_list = $form_state
    ->get('job_list');
  if (!isset($job_list)) {
    $task_handler_collect = \Drupal::service('module_builder.drupal_code_builder')
      ->getTask('Collect');
    $job_list = $task_handler_collect
      ->getJobList();
    $form_state
      ->set('job_list', $job_list);
  }
  return $job_list;
}