You are here

public function UpgradeStatusForm::exportReportASCII in Upgrade Status 8

Same name and namespace in other branches
  1. 8.3 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::exportReportASCII()
  2. 8.2 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::exportReportASCII()

Form submission handler.

Parameters

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

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

File

src/Form/UpgradeStatusForm.php, line 437

Class

UpgradeStatusForm

Namespace

Drupal\upgrade_status\Form

Code

public function exportReportASCII(array &$form, FormStateInterface $form_state) {
  $selected = $form_state
    ->getValues();
  $form_state
    ->setResponse($this
    ->exportReport($selected, 'ascii'));
}