You are here

public function ProcessTestSamplesForm::buildForm in Module Builder 8.3

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 ProcessForm::buildForm

File

module_builder_devel/src/Form/ProcessTestSamplesForm.php, line 37

Class

ProcessTestSamplesForm
Form for updating DCB's test sample analysis data.

Namespace

Drupal\module_builder_devel\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);

  // Remove the results; they're confusing here.
  // TODO: DCB should let us show what's in the test sample data location!
  unset($form['results']);
  unset($form['intro']);
  $form['analyse']['#title'] = $this
    ->t("Collect sample analysis data");
  return $form;
}