You are here

public function InfoForm::getFileInfoSubmit in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 8.4 src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::getFileInfoSubmit()
  2. 8.3 src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::getFileInfoSubmit()

Display file info in a drupal message.

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/InfoForm.php, line 298

Class

InfoForm
View AdvAgg information for this site.

Namespace

Drupal\advagg\Form

Code

public function getFileInfoSubmit(array &$form, FormStateInterface $form_state) {
  $info = $this
    ->getFileInfo($form_state
    ->getValue('filename'));
  $output = '<pre>' . print_r($info, TRUE) . '</pre>';
  if (!$this
    ->isAjax()) {
    drupal_set_message($output);
  }
}